Browse Source

Fix mouse mid button release initiating rubberband selection

Closes #667
tags/v1.9.9
falkTX FilipeCSnuk 7 years ago
parent
commit
5fa3c7ba92
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      source/patchcanvas.py

+ 5
- 4
source/patchcanvas.py View File

@@ -1415,10 +1415,6 @@ class PatchScene(QGraphicsScene):
QGraphicsScene.mouseMoveEvent(self, event)

def mouseReleaseEvent(self, event):
if event.button() == Qt.MidButton:
self.m_mid_button_down = False
return event.accept()

if self.m_rubberband_selection:
items_list = self.items()
if len(items_list) > 0:
@@ -1447,6 +1443,11 @@ class PatchScene(QGraphicsScene):

self.m_mouse_down_init = False
self.m_mouse_rubberband = False

if event.button() == Qt.MidButton:
self.m_mid_button_down = False
return event.accept()

QGraphicsScene.mouseReleaseEvent(self, event)

def wheelEvent(self, event):


Loading…
Cancel
Save