Skip to content

gtkgesture: Fix gtk_gesture_get_bounding_box_center() for touchpads

Yariv requested to merge yarivb/gtk:gtk-fix-gesture-get-center into master

From the commit message:

Touchpad gestures have only a single event sequence. The current
'center' of the gesture is the starting point + accumulated deltas.
Update gtk_gesture_get_bounding_box_center() accordingly.

PinchTranslate

In addition to this small fix, the gestures demo is updated to use that API, so that the square in the 'Pinch' demo can be moved around in addition to the already-supported zoom and rotate.

Replaces !1250 (closed) Fixes #2316 (closed)

Edited by Yariv

Merge request reports