Page 1 of 1
mouseDoubleDown changes inspectors
Posted: Fri Mar 17, 2023 6:31 pm
by dunbarx
I have a plug-in stack, in which, among other things, I have a mouseDoubleDown handler to toggle from pointer to browse tool. But when I click twice, I also get the card inspector to appear, out of the blue, and it thereafter toggles between it and the stack inspector.
I never asked for either.
If I comment out that handler, no inspectors appear.
Craig
Re: mouseDoubleDown changes inspectors
Posted: Fri Mar 17, 2023 7:07 pm
by Klaus
Hi Craig,
after "mousedoubledown" "mousedoubleup" will always be sent, too.
So no wonder the inspector will appear.
Or did I misunderstand you?
Best
Klaus
Re: mouseDoubleDown changes inspectors
Posted: Fri Mar 17, 2023 7:47 pm
by dunbarx
Klaus.
I get why it happens in pointer mode.
But the inspector shows up when I am in browse mode. If I comment out the handlers, LC behaves; only the pointer tool opens the inspector after double-click.
It does not matter if I trap and bury "mouseDoubleUp".
How does adding those handlers cause the inspector for the mouseControl to appear after a double click in browse mode?
Craig
Re: mouseDoubleDown changes inspectors
Posted: Sat Mar 18, 2023 11:23 am
by Klaus
Maybe you could add something like:
Code: Select all
...
if the tool = "browse tool" then
pass mousedoubledown
end if
...
?
Re: mouseDoubleDown changes inspectors
Posted: Sat Mar 18, 2023 9:06 pm
by dunbarx
Klaus.
Could be. I have not tried any gadgets to skirt this issue, which I consider to be odd. But I will try it on Monday.
I would have thought that simply:
Code: Select all
on mouseDoubleUp
end mouseDoubleUp
would do.
Craig
Re: mouseDoubleDown changes inspectors
Posted: Sun Mar 19, 2023 6:18 pm
by jacque
I think it's a bug. It happened to me yesterday. I can't remember what I was doing but it had nothing to do with inspectors. I restarted LC and it stopped.
Re: mouseDoubleDown changes inspectors
Posted: Sun Mar 19, 2023 9:40 pm
by dunbarx
Jacque.
Interesting, but I can toggle that "bug" very reliably by simply commenting out the handler or not.
Craig
Re: mouseDoubleDown changes inspectors
Posted: Mon Mar 20, 2023 3:10 am
by jacque
It's worth a report then, along with a sample stack.