lesca-click
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -92,4 +92,4 @@ var __assign = (this && this.__assign) || function () { | ||
state.isPress = true; | ||
var x = e instanceof TouchEvent ? e.targetTouches[0].clientX : e.clientX || false; | ||
var y = e instanceof TouchEvent ? e.targetTouches[0].clientY : e.clientY || false; | ||
var x = e instanceof MouseEvent ? e.clientX : e.targetTouches[0].clientX || false; | ||
var y = e instanceof MouseEvent ? e.clientY : e.targetTouches[0].clientY || false; | ||
if (!x || !y) | ||
@@ -107,4 +107,4 @@ return; | ||
return; | ||
var x = e instanceof TouchEvent ? e.targetTouches[0].clientX : e.clientX || false; | ||
var y = e instanceof TouchEvent ? e.targetTouches[0].clientY : e.clientY || false; | ||
var x = e instanceof MouseEvent ? e.clientX : e.targetTouches[0].clientX || false; | ||
var y = e instanceof MouseEvent ? e.clientY : e.targetTouches[0].clientY || false; | ||
if (!x || !y) | ||
@@ -111,0 +111,0 @@ return; |
{ | ||
"name": "lesca-click", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "use for prevent browser default behavior. usually used in web without scroll app.", | ||
@@ -24,38 +24,38 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.17.10", | ||
"@babel/core": "^7.18.5", | ||
"@babel/plugin-proposal-class-properties": "^7.17.12", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.18.0", | ||
"@babel/plugin-transform-modules-amd": "^7.18.0", | ||
"@babel/plugin-transform-runtime": "^7.18.5", | ||
"@babel/preset-env": "^7.18.2", | ||
"@babel/preset-react": "^7.17.12", | ||
"@babel/preset-typescript": "^7.17.12", | ||
"@emotion/react": "^11.9.3", | ||
"@emotion/styled": "^11.9.3", | ||
"@mui/icons-material": "^5.8.4", | ||
"@mui/material": "^5.8.5", | ||
"autoprefixer": "^10.4.7", | ||
"babel-loader": "^8.2.5", | ||
"concurrently": "^7.2.2", | ||
"css-loader": "^6.7.1", | ||
"@babel/cli": "^7.19.3", | ||
"@babel/core": "^7.20.2", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.2", | ||
"@babel/plugin-transform-modules-amd": "^7.19.6", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@emotion/react": "^11.10.5", | ||
"@emotion/styled": "^11.10.5", | ||
"@mui/icons-material": "^5.10.15", | ||
"@mui/material": "^5.10.15", | ||
"autoprefixer": "^10.4.13", | ||
"babel-loader": "^9.1.0", | ||
"concurrently": "^7.6.0", | ||
"css-loader": "^6.7.2", | ||
"file-loader": "^6.2.0", | ||
"gh-pages": "^4.0.0", | ||
"html-react-parser": "^2.0.0", | ||
"html-react-parser": "^3.0.4", | ||
"html-webpack-plugin": "^5.5.0", | ||
"lesca-react-qrcode": "^1.0.3", | ||
"lesca-react-qrcode": "^1.1.0", | ||
"less": "^4.1.3", | ||
"less-loader": "^11.0.0", | ||
"less-loader": "^11.1.0", | ||
"less-vars-to-js": "^1.3.0", | ||
"postcss": "^8.4.14", | ||
"postcss-loader": "^7.0.0", | ||
"prismjs": "^1.28.0", | ||
"postcss": "^8.4.19", | ||
"postcss-loader": "^7.0.1", | ||
"prismjs": "^1.29.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"style-loader": "^3.3.1", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.7.4", | ||
"webpack": "^5.73.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.9.2" | ||
"ts-loader": "^9.4.1", | ||
"typescript": "^4.9.3", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^5.0.0", | ||
"webpack-dev-server": "^4.11.1" | ||
}, | ||
@@ -62,0 +62,0 @@ "author": "jamehsu1125 <jameshsu1125@gmail.com>", |
@@ -87,4 +87,4 @@ import { GET_DEVICE, CHECK_PARENT_HAS_CLASS, FIND_ROOT } from './constants'; | ||
const x = e instanceof TouchEvent ? e.targetTouches[0].clientX : e.clientX || false; | ||
const y = e instanceof TouchEvent ? e.targetTouches[0].clientY : e.clientY || false; | ||
const x = e instanceof MouseEvent ? e.clientX : e.targetTouches[0].clientX || false; | ||
const y = e instanceof MouseEvent ? e.clientY : e.targetTouches[0].clientY || false; | ||
@@ -104,4 +104,4 @@ if (!x || !y) return; | ||
if (!state.isPress) return; | ||
const x = e instanceof TouchEvent ? e.targetTouches[0].clientX : e.clientX || false; | ||
const y = e instanceof TouchEvent ? e.targetTouches[0].clientY : e.clientY || false; | ||
const x = e instanceof MouseEvent ? e.clientX : e.targetTouches[0].clientX || false; | ||
const y = e instanceof MouseEvent ? e.clientY : e.targetTouches[0].clientY || false; | ||
if (!x || !y) return; | ||
@@ -108,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
356542