[bugfix] switching between zooming types now does not cause weird mouse event behavior anymore
This commit is contained in:
parent
ec3ecd04bb
commit
4292197818
@ -609,10 +609,11 @@ class PickDlg(QDialog):
|
|||||||
self.disconnectScrollEvent()
|
self.disconnectScrollEvent()
|
||||||
self.figToolBar.zoom()
|
self.figToolBar.zoom()
|
||||||
else:
|
else:
|
||||||
self.connectPressEvent(self.panPress)
|
self.figToolBar.zoom()
|
||||||
self.connectMotionEvent(self.panMotion)
|
self.cidpress = self.connectPressEvent(self.panPress)
|
||||||
self.connectReleaseEvent(self.panRelease)
|
self.cidmotion = self.connectMotionEvent(self.panMotion)
|
||||||
self.connectScrollEvent(self.scrollZoom)
|
self.cidrelease = self.connectReleaseEvent(self.panRelease)
|
||||||
|
self.cidscroll = self.connectScrollEvent(self.scrollZoom)
|
||||||
|
|
||||||
def scrollZoom(self, gui_event, factor=2.):
|
def scrollZoom(self, gui_event, factor=2.):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user