jQuery-contextMenu icon indicating copy to clipboard operation
jQuery-contextMenu copied to clipboard

In small window, menu overlaps mouse and mouseup immediately invokes a command

Open mattmccutchen opened this issue 5 years ago • 1 comments

Thanks for this useful library. We've recently found what we would consider to be a bug. If the user right-clicks to trigger the menu and the browser window is small enough compared to the menu, then the menu may overlap the mouse when it opens, and the mouseup will immediately invoke a command, which is probably not what the user intended.

Here's a demo using the main demo page:

jquery-contextmenu-bug-2018-10-26_17 29 40

(In our actual application, the menu is bigger, so the window doesn't have to be quite so small for the problem to occur.)

In this scenario, there should be a minimum time that the mouse button has to be held down before a mouseup will invoke a command, or perhaps the first mouseup should never invoke a command and another click should always be required.

I tried to search for an existing issue report, but I may have the wrong search terms...

mattmccutchen avatar Oct 26 '18 21:10 mattmccutchen

Hmm, this seems like a bug indeed. Seems like some sort of check for timing is in order.

bbrala avatar Nov 29 '18 10:11 bbrala