Skip to content

Commit

Permalink
Merge pull request 3b1b#1578 from nutanstrek/patch-1
Browse files Browse the repository at this point in the history
Minor fix for zooming
  • Loading branch information
3b1b authored Jul 28, 2021
2 parents 2734424 + 4940cca commit 354db44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manimlib/scene/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def on_mouse_scroll(self, point, offset):
frame = self.camera.frame
if self.window.is_key_pressed(ord("z")):
factor = 1 + np.arctan(10 * offset[1])
frame.scale(factor, about_point=point)
frame.scale(1/factor, about_point=point)
else:
transform = frame.get_inverse_camera_rotation_matrix()
shift = np.dot(np.transpose(transform), offset)
Expand Down

0 comments on commit 354db44

Please sign in to comment.