Zoom shifts viewport

Bug #592534 reported by Maia Everett on 2010-06-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
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) on 2010-06-15
Changed in pinta:
importance: Undecided → Low
Khairuddin Ni'am (niam-nfinity) wrote :

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

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.

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

Jonathan Pobst (jpobst) wrote :
Changed in pinta:
milestone: none → 0.6
status: New → Fix Committed
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  Edit
Everyone can see this information.

Other bug subscribers