Issue #1531 - Zooming with mouse movement should keep track of original point

When Control-Button2-Zooming, remember the start point, pass it to
gimp_display_shell_scale_drag() and force gimp_display_shell_scale()
to zoom around that point by passing GIMP_ZOOM_FOCUS_POINTER and
faking the point using gimp_display_shell_push_zoom_focus_pointer_pos().

(cherry picked from commit 792cd581a2)
This commit is contained in:
Michael Natterer
2018-06-04 11:42:02 +02:00
parent 3220dc25f9
commit f6766cbc87
4 changed files with 16 additions and 2 deletions

View File

@ -199,6 +199,8 @@ struct _GimpDisplayShell
const gchar *space_shaded_tool;
gboolean scrolling;
gint scroll_start_x;
gint scroll_start_y;
gint scroll_last_x;
gint scroll_last_y;
gboolean rotating;