From a018dd44dce6724bd03e659a07da7160d0ce635a Mon Sep 17 00:00:00 2001 From: Michele Sanna <{ID}+{username}@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:52:47 +0100 Subject: [PATCH] fix scroll in orthographic view --- pyrender/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrender/viewer.py b/pyrender/viewer.py index d2326c3..9b80e6b 100644 --- a/pyrender/viewer.py +++ b/pyrender/viewer.py @@ -659,7 +659,7 @@ def on_mouse_scroll(self, x, y, dx, dy): if dy > 0: sf = spfc * dy elif dy < 0: - sf = - spbc * dy + sf = spbc / abs(dy) c = self._camera_node.camera xmag = max(c.xmag * sf, 1e-8)