Skip to content

Commit

Permalink
Always allow image center to be anywhere in the image, regardless of …
Browse files Browse the repository at this point in the history
…zoom.
  • Loading branch information
cmbruns committed Jun 20, 2024
1 parent 53d8136 commit c2adef8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions vmg/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@ def _clamp_center(self):
cy = max(0.0, cy)
cx = min(1.0, cx)
cy = min(1.0, cy)
if not self.is_360:
z = self.zoom
if z <= 1:
cx = 0.5
cy = 0.5
else:
cx = min(cx, 1 - 0.5 / z)
cx = max(cx, 0.5 / z)
cy = min(cy, 1 - 0.5 / z)
cy = max(cy, 0.5 / z)
self._center_rel = LocationRelative(cx, cy)

def context_menu_actions(self, qpoint: QPoint) -> list:
Expand Down

0 comments on commit c2adef8

Please sign in to comment.