Login  Register

Re: disable long-click for context menu?

Posted by Stein Rørvik on Oct 27, 2020; 10:48am
URL: http://imagej.273.s1.nabble.com/disable-long-click-for-context-menu-tp5024124p5024125.html

I agree that there should be a way to disable long-clicks if you don't need it.
Or perhaps the length of the long-click delay could be specifiable?

The right place for this choice would be in Edit → Options → Appearance

Either a checkbox for disabling the long-click context (it can by default be on, to allow use on mobile platforms),
or a specifiable delay (is it something like 1.5 second today?) that can be set to a negative or NaN value to disable it.

Stein

-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of Michael Schmid
Sent: 27. oktober 2020 11:10
To: [hidden email]
Subject: disable long-click for context menu?

Hi everyone (probably Wayne),

ImageJ 1.53g has added the possibility to have long-clicks for the context menu.
I have a plugin where I drag a point of a custom overlay (to modify that overlay). After dragging for about a second, the context menu interferes. I guess that the same might happen for other plugins that use mouseDragged.

I could not find any method to disable the long-click context menu. Did I miss it, or otherwise, could we have something like an
ImagePlus.enableLongClickForContextMenu(boolean) method?

Or is there some other alternative for dragging points in a plugin without triggering the context menu?


Best regards,

Michael

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C497ad3fe86dd4eacb02b08d87a60bab3%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637393903154366397%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=C%2FX%2B%2FfgFk0CbANQLBIi0M%2F%2FBP1PxkXu4uNw1%2Bh8ohVc%3D&amp;reserved=0

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html