I want to activate a context-menu only after left-mousedown is pressed for N seconds (e.g. 2 seconds).
If the mouse is released, the context-menu should not be shown.
I tried to use:
But I cannot get the expected behaviour.
What I get is a delay before showing the context-menu for the first time, but:
How can I condition showing the context-menu, only after the mouse is clicked for a specified time period?
Thanks
I ended up using the solution in here. It uses the methods:
Window.setTimeout, Window.clearTimeout,