SpyrexDE / SmoothScroll

Addon for the Godot Game Engine that adds a SmoothScrollContainer.
https://spyrexde.github.io/SmoothScroll/
MIT License
132 stars 11 forks source link

Add mobile touch support #5

Closed GDUcrash closed 1 year ago

GDUcrash commented 1 year ago

I've modified this addon slightly for my personal project to add support for mobile touchscreen dragging and decided to share it. Apart from, obviously, adding event handlers for InputEventScreenDrag, I've also added two friction variables, which can be adjusted: friction_scroll is applied when the user scrolls with the mouse wheel, friction_drag is applied when swiping.

SpyrexDE commented 1 year ago

Looks good, thanks for contributing!