add rubato animation to overflow widget for smoother scrolling, can lagg for big lists

This commit is contained in:
Rene Kievits
2023-05-15 13:03:42 +02:00
parent 2d68ee71da
commit c023714060

View File

@@ -338,7 +338,6 @@ function overflow:set_scroll_factor(factor)
end end
self.rubato_timed.target = math.min(1, math.max(factor + (self.rubato_timed.target - self.rubato_timed.pos), 0)) self.rubato_timed.target = math.min(1, math.max(factor + (self.rubato_timed.target - self.rubato_timed.pos), 0))
print(self.rubato_timed.target)
--self._private.scroll_factor = math.min(1, math.max(factor, 0)) --self._private.scroll_factor = math.min(1, math.max(factor, 0))
--self:emit_signal('widget::layout_changed') --self:emit_signal('widget::layout_changed')