From acca19a1b3982b3f6be596bcc80fc92e93bb1f21 Mon Sep 17 00:00:00 2001 From: Daniel Lidstrom Date: Mon, 21 Dec 2020 22:22:12 -0800 Subject: [PATCH] Clearing selection on wheelEvent is buggy, so don't --- pyqtgraph/parametertree/ParameterTree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyqtgraph/parametertree/ParameterTree.py b/pyqtgraph/parametertree/ParameterTree.py index a9c9c3e1..145c448c 100644 --- a/pyqtgraph/parametertree/ParameterTree.py +++ b/pyqtgraph/parametertree/ParameterTree.py @@ -159,9 +159,9 @@ class ParameterTree(TreeWidget): sel[0].selected(True) return TreeWidget.selectionChanged(self, *args) - def wheelEvent(self, ev): - self.clearSelection() - return TreeWidget.wheelEvent(self, ev) + # def wheelEvent(self, ev): + # self.clearSelection() + # return TreeWidget.wheelEvent(self, ev) def sizeHint(self): w, h = 0, 0