Merge pull request #7775 from gottadiveintopython/fix_7721

Don't let 'ScrollEffect.reset()' set 'is_manual' to True
This commit is contained in:
Richard Larkin 2022-02-17 21:50:37 +02:00 committed by GitHub
commit 1c83cdf2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ class as a base effect for our :class:`~kivy.uix.scrollview.ScrollView` widget.
__all__ = ('ScrollEffect', )
from time import time
from kivy.effects.kinetic import KineticEffect
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ObjectProperty
@ -91,7 +92,7 @@ class ScrollEffect(KineticEffect):
self.velocity = 0
if self.history:
val = self.history[-1][1]
super(ScrollEffect, self).start(val, None)
self.history = [(time(), val)]
def on_value(self, *args):
scroll_min = self.min