Check if click happened with or without a drag

I am using gtk4 with gtk-rs and right now I have a GestureClick controller and a GestureDrag controller on a DrawingArea. I can listen for clicks and drag updates but I’ve ran into a bit of a problem : I need to distinguish between clicks that happen during drags and clicks that happen outside of drags. The answer probably lies in grouping but aside from that I have no idea of how to properly tackle this problem. I currently have a really hacky solution involving timing and mutexes…

This probably doesn’t answer your question, but I would suggest looking at as it could help you solve your issue

They don’t seem to be using GestureClick :confused: … Thanks for the resource though !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.