Socket
Socket
Sign inDemoInstall

react-use-mouse-position

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

5

index.js

@@ -14,4 +14,5 @@ import { useState, useEffect } from "react";

const updateTouchPosition = ev => {
if (ev?.changedTouches?.length > 0) {
let touch = ev?.changedTouches[0];
let touches = ev.changedTouches || [];
if (touches.length > 0) {
let touch = touches[0];
setMousePosition({ mouseX: touch.clientX, mouseY: touch.clientY });

@@ -18,0 +19,0 @@ }

2

package.json
{
"name": "react-use-mouse-position",
"version": "1.0.3",
"version": "1.0.4",
"description": "A light npm package to track mouse position",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc