Weird mousewheel scroll behavior with long menus

Tue Oct 12, 2021 6:06 am

To reproduce this, run the example file, and go into Controls -> A Very Long Controls Menu.

This is just the controls menu with a lot of duplicated items to make the menu long enough that the scroll up/down arrows start to appear.

When you use the mousewheel to scroll down slowly, it works fine, and when you see the "this is the last item" text that's in yellow, it will be flush against the bottom edge of the screen:

Now, scroll up back a little, so that you don't see the last item anymore (maybe go to the middle of the list). Now, scroll your mousewheel aggressively (as in, swipe the wheel very fast and far, like as if to make it scroll more lines).

You will most likely be able to make the scrolling overshoot its limits, and the last item will now no longer be at the edge of the screen:

Depending on how hard you roll the mousewheel, the position can overshoot only a few lines, or in extreme cases, you could even make the last item go so high up that it goes to the middle of the screen.
You do not have the required permissions to view the files attached to this post.

Re: Weird mousewheel scroll behavior with long menus

Thu Oct 14, 2021 1:38 am

Possibly related to this issue.