提交 be4d2d03 编写于 作者: 之一Yo's avatar 之一Yo

fixes #127

上级 b0f644c1
...@@ -61,7 +61,7 @@ class SmoothScrollBar(QScrollBar): ...@@ -61,7 +61,7 @@ class SmoothScrollBar(QScrollBar):
# adjust the duration # adjust the duration
dv = abs(value - self.value()) dv = abs(value - self.value())
if dv < 50: if dv < 50:
self.ani.setDuration(self.duration * dv / 70) self.ani.setDuration(int(self.duration * dv / 70))
else: else:
self.ani.setDuration(self.duration) self.ani.setDuration(self.duration)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册