Skip to content

Commit

Permalink
Merge pull request #2483 from aganders3/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed May 3, 2023
2 parents ce20572 + 88317a2 commit ca096f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vispy/app/backends/_qt.py
Expand Up @@ -565,7 +565,7 @@ def _handle_native_gesture_event(self, ev):
# QNativeGestureEvent gives the wrong local position.
# See: https://bugreports.qt.io/browse/QTBUG-59595
try:
pos = self.mapFromGlobal(ev.globalPosition())
pos = self.mapFromGlobal(ev.globalPosition().toPoint())
except AttributeError:
# globalPos is deprecated in Qt6
pos = self.mapFromGlobal(ev.globalPos())
Expand Down

0 comments on commit ca096f5

Please sign in to comment.