def update(self, val, t=None):
        self.displacement += abs(val - self.history[-1][1])
        return super(ScrollEffect, self).update(val, t)
dataset/ETHPy150Open kivy/kivy/kivy/effects/scroll.py/ScrollEffect.update/original