gui-cs / Terminal.Gui

Cross Platform Terminal UI toolkit for .NET
MIT License
9.37k stars 676 forks source link

Mouse doubleclick stops continous pressed events. #3404

Open tig opened 2 months ago

tig commented 2 months ago

I can reproduce in the Buttons scenario:

https://i.imgur.com/eE3BSgr.gif

Using the Mouse scenario the issue has to do with the doubleclick logic.

Here, I just pressed-hold-released:

image

Here, I pressed-released-pressed-hold:

image

Originally posted by @tig in https://github.com/gui-cs/Terminal.Gui/issues/3323#issuecomment-2053691080

BDisp commented 2 months ago

Double clicking on the second image is controlled by the Win32 API which sends the double click flag and there is no way to avoid this, even if the button is pressed.

sillycowvalley commented 1 month ago

Any progress on this issue: I can easily repro : if you click a 2nd time without moving the mouse, you get no 2nd click event. This is where I got stuck on the road to processing double clicks. Happy to provide more testing and feedback.