ScrollingFrame's ScrollBar will sink user input when the ScrollBar is not rendered

Reproduction Steps

To reproduce, copy this script into your StarterPlayerScripts, then hit Play.

ScrollingFrameBug.lua (3.0 KB)

  1. Click the button to hide the scroll bar (this makes the CanvasSize equal to <0, 0, 0, 0>)
  2. Click the button to resize the ScrollingFrame (this adjusts the size & position for 20 pixels down).
  3. Click the newly exposed button near the left side of the window – this should work fine – you should see the color toggle to indicate the click worked.
  4. Click the button near the right side of the window – where the scroll bar used to be. This should fail.

Expected Behavior

I would expect the ScrollBar doesn’t sink user input when it’s not visible, nor would I expect it to sink user input outside of the ScrollingFrame’s boundaries. I want my TextButton to behave the same whether the user clicks where the ScrollBar once was or not.

Actual Behavior

Click doesn’t succeed.



Workaround

You can make the ScrollBar visible – if just for a split second – to fix the issue.

Issue Area: Engine
Issue Type: Other
Impact: Moderate
Frequency: Very Rarely
Date First Experienced: 2022-07-11 00:07:00 (-04:00)

3 Likes

Thanks for the report! We’ll follow up when we have an update for you.

1 Like

This is still an issue 2 months later. The only solution I’ve found is to turn off ScrollingEnabled every frame unless the mouse is inside the scrolling frame.

Hi @blobbyblob @ChadTheCreator this issue should be fixed now! Can you please confirm it is fixed for you when you get a chance? Thank you!