Reproduction Steps
To reproduce, copy this script into your StarterPlayerScripts, then hit Play.
ScrollingFrameBug.lua (3.0 KB)
- Click the button to hide the scroll bar (this makes the CanvasSize equal to <0, 0, 0, 0>)
- Click the button to resize the ScrollingFrame (this adjusts the size & position for 20 pixels down).
- 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.
- 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)