New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pmndrs/pointer-events

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pmndrs/pointer-events - npm Package Compare versions

Comparing version 6.4.12-alpha.46 to 6.4.12-alpha.48

4

dist/forward.js

@@ -10,4 +10,4 @@ import { Pointer } from './pointer.js';

const { width, height, top, left } = element.getBoundingClientRect();
const x = e.pageX - left;
const y = e.pageY - top;
const x = e.clientX - left;
const y = e.clientY - top;
return target.set((x / width) * 2 - 1, -(y / height) * 2 + 1);

@@ -14,0 +14,0 @@ }

@@ -5,3 +5,3 @@ {

"license": "SEE LICENSE IN LICENSE",
"version": "6.4.12-alpha.46",
"version": "6.4.12-alpha.48",
"homepage": "https://github.com/pmndrs/xr",

@@ -39,4 +39,8 @@ "author": "Bela Bohlender",

"example": "vite example --host",
"example:build": "vite build example"
"example:build": "vite build example",
"check:prettier": "prettier --check src",
"check:eslint": "eslint 'src/**/*.ts'",
"fix:prettier": "prettier --write src",
"fix:eslint": "eslint 'src/**/*.ts' --fix"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc