SpyrexDE / SmoothScroll

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

Use scroll container 's properties #57

Closed HaroldLever closed 2 months ago

HaroldLever commented 2 months ago

https://github.com/SpyrexDE/SmoothScroll/assets/80692930/7930d847-cbfa-4e8e-877a-6af7a075a0ca

ScrollContainer on left, SmoothScrollContainer on right.

scroll_horizontal and scroll_vertical now should work

scroll_deadzone now should work

Replaces SmoothScrollContainer.follow_focus_ by ScrollContainer.follow_focus

Overrides ScrollContainer.ensure_control_visible, now it should work.

InputEventMouseButton.factor is taken into calculation.

SpyrexDE commented 2 months ago

Those are good changes. I didn't know that you could override _get() to achieve this but it seems to work fine. Thanks :)