Skip to content

Commit 3663824

Browse files
committed
do not handle mousemove with ctrl/shift/alt in camera
1 parent 5e089bf commit 3663824

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

webgpu/camera.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ def set_render_functions(self, redraw_function, get_position_function=None):
212212
self._get_position_function = get_position_function
213213

214214
def register_callbacks(self, input_handler):
215-
input_handler.on_mousedown(self._on_mousedown, ctrl=False)
216-
input_handler.on_mouseup(self._on_mouseup, ctrl=False)
217-
input_handler.on_mouseout(self._on_mouseup, ctrl=False)
218-
input_handler.on_mousemove(self._on_mousemove, ctrl=False)
219-
input_handler.on_dblclick(self._on_dblclick, ctrl=False)
220-
input_handler.on_wheel(self._on_wheel)
215+
input_handler.on_mousedown(self._on_mousedown, ctrl=False, shift=False, alt=False)
216+
input_handler.on_mouseup(self._on_mouseup, ctrl=False, shift=False, alt=False)
217+
input_handler.on_mouseout(self._on_mouseup, ctrl=False, shift=False, alt=False)
218+
input_handler.on_mousemove(self._on_mousemove, ctrl=False, shift=False, alt=False)
219+
input_handler.on_dblclick(self._on_dblclick, ctrl=False, shift=False, alt=False)
220+
input_handler.on_wheel(self._on_wheel, ctrl=False, shift=False, alt=False)
221221

222222
def unregister_callbacks(self, input_handler):
223223
input_handler.unregister("mousedown", self._on_mousedown)

0 commit comments

Comments
 (0)