Previously when you zoomed in, you wouldn't get the temporary zoom-out
while scrolling.
From: Marius Gedminas <marius@gedmin.as>
... | ... |
@@ -676,7 +676,7 @@ class ZoomToAnimation(MoveToAnimation): |
676 | 676 |
distance = math.hypot(self.source_x - self.target_x, |
677 | 677 |
self.source_y - self.target_y) |
678 | 678 |
rect = self.dot_widget.get_allocation() |
679 |
- visible = min(rect.width, rect.height) * self.dot_widget.zoom_ratio |
|
679 |
+ visible = min(rect.width, rect.height) / self.dot_widget.zoom_ratio |
|
680 | 680 |
visible *= 0.9 |
681 | 681 |
desired_middle_zoom = visible / distance |
682 | 682 |
self.extra_zoom = min(0, 4 * (desired_middle_zoom - middle_zoom)) |