After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697530 - zoom during mouse-pan focuses on wrong location
zoom during mouse-pan focuses on wrong location
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: User Interface
2.8.4
Other All
: Normal minor
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-08 03:41 UTC by Loren Merritt
Modified: 2018-05-24 13:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Loren Merritt 2013-04-08 03:41:25 UTC
If I change the zoom level during a pan (middle-click-and-hold, "+", release mouse button), then the screen jumps to a completely different location on the canvas than it started at. The new focus of the pan is at the same display distance from the upper-left corner of the canvas, which is a different pixel now that the pixel-to-display ratio has changed.

Using space key rather than middle-click to activate pan mode doesn't trigger the same symptoms. Instead it prevents me from zooming, i.e. "+" does nothing while space is held down.


GNU Image Manipulation Program version 2.8.4
git-describe: GIMP_2_8_2-186-g8a9af4c

using GEGL version 0.2.0 (compiled against version 0.2.0)
using GLib version 2.34.3 (compiled against version 2.34.3)
using GdkPixbuf version 2.26.3 (compiled against version 2.26.3)
using GTK+ version 2.24.12 (compiled against version 2.24.12)
using Pango version 1.30.1 (compiled against version 1.30.1)
using Fontconfig version 2.8.0 (compiled against version 2.8.0)
using Cairo version 1.12.8 (compiled against version 1.12.8)

Happens on both linux and windows.
Comment 1 Michael Natterer 2013-04-21 18:04:09 UTC
Fixed in master and gimp-2-8. Probably not what you wanted, but the
actual bug was that panning allowed accelerators at the same time.


commit 019eb591116740b0a4587f0cac4daf24c8b1cb58
Author: Michael Natterer <mitch@gimp.org>
Date:   Sun Apr 21 20:00:28 2013 +0200

    Bug 697530 - zoom during mouse-pan focuses on wrong location
    
    Block all key events while middle-mouse panning, to prevent
    accelerators from being invoked.
    (cherry picked from commit 3643551280887251cd20702275398f7b3169a309)

 app/display/gimpdisplayshell-tool-events.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Loren Merritt 2013-04-22 04:27:53 UTC
It's still possible to trigger this bug if I bind zoom to the mouse wheel. (I confirm the fix for key events.)
Comment 3 Michael Natterer 2013-04-22 07:08:43 UTC
Heh, well done, reopening :)
Comment 4 GNOME Infrastructure Team 2018-05-24 13:39:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/462.