From 50ed88881250870dfd027d4266c529600fc0e4ba Mon Sep 17 00:00:00 2001 From: Shawn Douglas Date: Thu, 15 Dec 2022 10:38:29 -0800 Subject: [PATCH] Update customqgraphicsview.py Fixes typo in mousePressEvent. --- cadnano2/views/customqgraphicsview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadnano2/views/customqgraphicsview.py b/cadnano2/views/customqgraphicsview.py index 5783bc7..3160b03 100755 --- a/cadnano2/views/customqgraphicsview.py +++ b/cadnano2/views/customqgraphicsview.py @@ -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: