Skip to content

Commit

Permalink
Update customqgraphicsview.py
Browse files Browse the repository at this point in the history
Fixes typo in mousePressEvent.
  • Loading branch information
sdouglas committed Dec 15, 2022
1 parent 6318c49 commit 50ed888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cadnano2/views/customqgraphicsview.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def mousePressEvent(self, event):
self._last_scale_factor = 0
# QMouseEvent.y() returns the position of the mouse cursor
# relative to the widget
self._y0 = event.posF().y()
self._y0 = event.pos().y()
else:
QGraphicsView.mousePressEvent(self, event)
else:
Expand Down

0 comments on commit 50ed888

Please sign in to comment.