Skip to content

Commit

Permalink
Fix mouse press events not coming through on double clicks (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
berendkleinhaneveld authored Mar 16, 2022
1 parent f23edbb commit 47de380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wgpu/gui/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def mouseReleaseEvent(self, event): # noqa: N802
self._mouse_event("pointer_up", event)

def mouseDoubleClickEvent(self, event): # noqa: N802
super().mouseDoubleClickEvent(event)
self._mouse_event("double_click", event, touches=False)

def wheelEvent(self, event): # noqa: N802
Expand Down

0 comments on commit 47de380

Please sign in to comment.