Skip to content

Commit

Permalink
v2.4.10
Browse files Browse the repository at this point in the history
Fix another mouseEvent bug in dollyZoom
  • Loading branch information
sdouglas committed Dec 15, 2022
1 parent aeb378c commit 17aa629
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cadnano2/tests/functionaltests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
"""
functionaltests.py
Created by Shawn Douglas on 2011-06-28.
Expand Down
2 changes: 1 addition & 1 deletion cadnano2/views/customqgraphicsview.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def dollyZoom(self, event):
"""docstring for dollyZoom"""
# QMouseEvent.y() returns the position of the mouse cursor relative
# to the widget
yf = event.y()
yf = event.pos().y()
denom = abs(yf - self._y0)
if denom > 0:
scale_factor = (self.height() / 2) % denom
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='cadnano2',
version='2.4.9',
version='2.4.10',
description='Cadnano2 for PyQt6',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 17aa629

Please sign in to comment.