Animate the scroll bar movement when following cursor

This commit is contained in:
Veronica K. B. Olsen
2020-10-13 21:51:49 +02:00
parent 3e26c926fa
commit 7d1e85c0d4
2 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -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():