New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancelling of touchpad double-tap dragging by keyboard gets lost #7517
Comments
I don't understand what you are talking about, nor what the problem is, nor how it is a dear imgui issue. |
Sure 😇, sorry For some reasons the standard ImGui drag-and-drop didn't work for me (I don't recall anymore if it was about specific scrolling of mine or if there was something with the payload), so I investigated something on my own. It also worked out rather easily, it's just that for one border case the cancelling detection didn't succeed. Probably there's nothing ImGui can do about it (but I'm not sure), so that's why I put this ticket. On a notebook you have at least three ways of doing drag-and-drop:
When you want to abort the drag-and-drop functionality e.g. by pressing "Escape" the Touchpad click&hold and move, then in addition "Escape" [03921] [io] Processed: MousePos (736.0, 347.0) (Mouse)
[03922] [io] Processed: MouseButton 0 Down (Mouse)
[03956] [io] Processed: MousePos (737.0, 347.0) (Mouse)
[...]
[04006] [io] Processed: Key "Escape" Down
[04012] [io] Processed: Key "Escape" Up
[04057] [io] Processed: MouseButton 0 Up (Mouse)
[04101] [io] Processed: MousePos (733.0, 369.0) (Mouse)
[...] vs. Touchpad double tap & move, then in addition "Escape" [08912] [io] Processed: MouseButton 0 Down (Mouse)
[08960] [io] Processed: MousePos (469.0, 644.0) (Mouse)
[...]
[09035] [io] Processed: MousePos (464.0, 630.0) (Mouse)
[09078] [io] Processed: MouseButton 0 Up (Mouse)
[09078] [io] Remaining: Key "Escape" Down
[09079] [io] Processed: Key "Escape" Down
[09082] [io] Processed: Key "Escape" Up
[09123] [io] Processed: MousePos (465.0, 630.0) (Mouse)
[...] Some strange things happen in double-tab mode:
If you compare this with my initial post... 130, dragging, down
131
132, Escape .. it seems the "first press" of I hope it's clearer now |
What you mean by cancelling detection? Afaik dear imgui doesn’t have any explicit code in place that poll Escape and has an effect on drag and drop. Based on your sentence you suggest this is completely unrelated to imgui dnd system? Whatever is submitted to IO is the backend responsibility and is usually a mirror or what the OS submitted to it. I have no idea what double-tap on your touchpad does but it is worth investigating. Even though it seems unrelated to the scope/responsibility of imgui, if there’s a common feature/idiom submitted by drivers we ought to be aware of it and react if we can, but right now you are sharing inputs not emitted by imgui, i am not sure what i am supposed to do with them. |
Yes, I talk about my own drag-and-drop which I also want to be able to abort e.g. when hitting |
Version/Branch of Dear ImGui:
1.89.9 master
Back-ends:
crsfml, 2.5.3
Compiler, OS:
gcc/crystal, Ubuntu
Full config/build information:
If you run this and try to drag anything (e.g. a window) and try to cancel it with the keyboard (e.g. by intercepting "Escape") you will have no success when using the touchpad in tapping mode:
produces the following...
... with mouse (good)
... with touchpad & click (good)
... with touchpad & double-tap (bad)
Probably that's not an issue of ImGui, but more on the backend / touchpad driver...? then there won't be an easy antidote...
Details:
My Issue/Question:
XXX (please provide as much context as possible)
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: