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

custom-context-menu

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-context-menu - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

15

cm.js

@@ -278,7 +278,12 @@ function ContextMenu(target, params) {

} else {
node.addEventListener("mouseup", (event) => {
// close all the CMs and then execute the given function
this._getRoot().close();
item.function();
}, false);
// this timeout is needed to prevent an item to be treated as
// "mouseupped" in case of random mouse movement right after
// the CM has been opened
setTimeout(() => {
node.addEventListener("mouseup", (event) => {
// close all the CMs and then execute the given function
this._getRoot().close();
item.function();
}, false);
}, 100)
}

@@ -285,0 +290,0 @@

{
"name": "custom-context-menu",
"version": "1.3.5",
"version": "1.3.6",
"description": "A small (<2kB minified and gzipped) tool with no dependencies that helps you create custom rightclick context menues.",

@@ -5,0 +5,0 @@ "keywords": [

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