diff --git a/druid/base/scroll.lua b/druid/base/scroll.lua index f38cc14..84d6a65 100644 --- a/druid/base/scroll.lua +++ b/druid/base/scroll.lua @@ -531,6 +531,9 @@ end --- Cancel animation on other animation or input touch function Scroll._cancel_animate(self) + self.inertion.x = 0 + self.inertion.y = 0 + if self.is_animate then self.target_position = gui.get_position(self.content_node) self.position.x = self.target_position.x