Skip to content

gtkgesture: Preserve accuracy when translating events

Guido Günther requested to merge guidog/gtk:touch-accuracy into gtk-3-24

gtk_widget_translate_coordinates() uses an int argument and thus cuts off any decimal parts. This can leads to reduces accuracy when e.g. measuring the distance of a drag.

GTK4 is not affected as the translations is done differently.

@calebccff noticed the loss of accuracy in guidog/phosh-osk-stub!115 (closed)

Edited by Guido Günther

Merge request reports