Posted by
Michael Schmid on
Oct 27, 2020; 4:54pm
URL: http://imagej.273.s1.nabble.com/disable-long-click-for-context-menu-tp5024124p5024129.html
Hi Wayne,
yes, the problem is solved with the new daily build, thank you!
(Unfortunately, it is not a small plugin that I have, and rather
spezilized. It would only make sense to publish it as part of a plugin
collection - I intend to do so, but I have to find time for fixing a few
things before doing so...)
Michael
________________________________________________________________
On 27.10.20 16:55, Wayne Rasband wrote:
>> On Oct 27, 2020, at 6:10 AM, Michael Schmid <
[hidden email]> wrote:
>>
>> 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.
>
> Hi Michael,
>
> This problem should be fixed in the 1.53g2 daily build, where the context menu is not displayed if the cursor has moved. It would help to have a small plugin that reproduces this problem. The macros in the Help>Examples>Tools menu that move overlay objects (e.g., the Circle Tool) do not trigger the context menu.
>
> -wayne
>
>
>> 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?
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html