Skip to content

Commit 4b37039

Browse files
committed
Fix mousemove handle on windows
1 parent 03c70fc commit 4b37039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webgpu/input_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __on_mouseup(self, ev):
5454

5555
def __on_mousemove(self, ev):
5656
self._is_moving = True
57-
if ev["buttons"] != 0:
57+
if "buttons" in ev and ev["buttons"] != 0:
5858
self.emit("drag", ev)
5959

6060
def on(

0 commit comments

Comments
 (0)