Zoom shifts viewport

Bug #592534 reported by Maia Everett
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Low
Unassigned

Bug Description

1. Zoom to 200%.
2. Scroll the viewport to the far right.
3. Zoom to 400%.

The viewport shifts to middle-left, far away from where it was at 200%.

I think GIMP-like behavior would result in better usability. Keys (+/-) or the menu zoom relative to the center of the viewport (rather than the top-left corner like Pinta), while the mouse wheel zooms relative to the mouse cursor's position on the viewport.

Jonathan Pobst (jpobst)
Changed in pinta:
importance: Undecided → Low
Revision history for this message
Khairuddin Ni'am (niam-nfinity) wrote :

Implementation based on Maia Kozheva suggestion (GIMP-like behaviour)

Revision history for this message
Jonathan Pobst (jpobst) wrote :

Very nice, I remember struggling with this a long time ago.

Patch committed in https://github.com/jpobst/Pinta/commit/b88d15fc85f70b606385390df24797a24cb5bf0e.

The only remaining issue is the viewport doesn't seem to be preserved if drop down the zoom combo box and choose a new value. If you use the zoom in / zoom out buttons, it does work.

Leaving bug open for this last issue.

Revision history for this message
Khairuddin Ni'am (niam-nfinity) wrote :

Update patch for my previous patch.
Note : apply my previous patch before apply this patch if you have not done it before.

This patch fix "viewport isn't preserved if zoom is selected from drop down menu." pointed by Jonathan Pobst

Revision history for this message
Jonathan Pobst (jpobst) wrote :
Changed in pinta:
milestone: none → 0.6
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

I have tested this zoom behavior on Pinta 0.6/Windows XP sp3 and I can confirm bug is fixed.

Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.