Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lesca-click

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lesca-click - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

7

lib/index.js

@@ -63,3 +63,5 @@ var __assign = (this && this.__assign) || function () {

var areWePreventDefault = function (e) {
var preventDefault = state.preventDefault;
var preventDefault = state.preventDefault, enabled = state.enabled;
if (!enabled)
return;
var root = (0, constants_1.FIND_ROOT)(e);

@@ -109,4 +111,3 @@ var isRoot = false;

return;
if (state.enabled)
areWePreventDefault(e);
areWePreventDefault(e);
var dx = mousePropertyDown.x, dy = mousePropertyDown.y;

@@ -113,0 +114,0 @@ moveOffsetProperty.x = x - dx;

{
"name": "lesca-click",
"version": "4.3.0",
"version": "4.3.1",
"description": "use for prevent browser default behavior. usually used in web without scroll app.",

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

@@ -56,3 +56,4 @@ import { GET_DEVICE, CHECK_PARENT_HAS_CLASS, FIND_ROOT } from './constants';

const areWePreventDefault = (e: TouchEvent | MouseEvent) => {
const { preventDefault } = state;
const { preventDefault, enabled } = state;
if (!enabled) return;
const root = FIND_ROOT(e);

@@ -107,3 +108,3 @@ let isRoot = false;

if (state.enabled) areWePreventDefault(e);
areWePreventDefault(e);

@@ -110,0 +111,0 @@ const { x: dx, y: dy } = mousePropertyDown;

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