• Godot HelpGUI
  • Touch input on a ScrollContainer causes "excessive" scrolling

Unfortunately, I don't know if I'm in the right forum and if this should be under GUI.

I have a ScrollContainer and within it there are five panels (each 900 pixels wide). I can scroll via touch on my smartphone. But if I swipe quickly, I can go from the first panel to the last with this swipe.

How can I reduce the effect of the touch/swipe?

Thank you for your answer.

It's just that "scroll_horizontal_custom_step" and "scroll_vertical_custom_step" only apply when scrolling is done via the buttons or the scroll bar. Not via touch (if, for example, the scroll bar is deactivated).
And changing the dead zone doesn't produce the desired result either.

Still looking for a kind of "damper" to slow down the touch/swipe effect on the scrollcontainer.

Do you want the container to move by one panel, regardless of how fast the user swipes?

I don't know if a ScrollContainer can do that. You may need to use a different type of container that doesn't automatically scroll, and manually detect the swipe and move the panels.

    DaveTheCoder
    Yes, that's probably the best advice.
    I was just hoping to be able to "dampen" the swipe so that a swipe no longer scrolls through all the panels at once.

    Background: wanted to create a multi-page swipe menu. (Still want ... )

    Last question: is there anything wrong with simply setting or limiting the mouse velocity in the code when swiping? Maybe that will have the desired effect. I will try it out ...