Animate the scroll bar movement when following cursor
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ class QSwitch(QAbstractButton):
|
||||
"""
|
||||
super().mouseReleaseEvent(event)
|
||||
if event.button() == Qt.LeftButton:
|
||||
doAnim = QPropertyAnimation(self, b'offset', self)
|
||||
doAnim = QPropertyAnimation(self, b"offset", self)
|
||||
doAnim.setDuration(120)
|
||||
doAnim.setStartValue(self.offset)
|
||||
if self.isChecked():
|
||||
|
||||
Reference in New Issue
Block a user