#19265: wxGesture on touchscreen only: missing mouse move and click events when
enabling touch events
----------------------+----------------------------
Reporter: tbultel | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGTK | Version: dev-latest
Resolution: | Keywords: gesture, mouse
Blocked By: | Blocking:
Patch: 0 |
----------------------+----------------------------
Changes (by tbultel):
* cc: tbultel@… (added)
Comment:
At first analysis, the usage of the touch_callback
g_signal_connect (widget, "touch-event",
G_CALLBACK(touch_callback), win);
... hides the motion-notify-event
Instead, motion events are reported through the GDK_TOUCH_UPDATE
type in gdk_event->type in the touch_callback
But the current implementation does not forward a motion event in this
case...
Additionnaly ,'simple touch', that is to say a touch that is not long,
correctly leads to a GDK_TOUCH_BEGIN followed by a GDK_TOUCH_END,
and press events are masked.
As far as I understand, the fix would consists in the following things:
-> forwarding motion event. (A dirty fix that consists in calling
gtk_window_motion_notify_callback inthe GTK_TOUCH_UPDATE case works fine)
-> faking a LeftDown event upon GDK_TOUCH_BEGIN
-> faking a LeftUp event upon GDK_TOUCH_END
A can work on a patch for this but any comments are welcome !
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19265#comment:1>