If the mouse wheel is used to scroll a ScrollingFrame, then when you reach the very top of the scrollbar, and keep scrolling with your mouse wheel:
-
Then the focus goes away from the ScrollingFrame and onto your character, and scrolling causes the camera to zoom in.
-
If you continue to scroll with the mouse wheel, your character eventually goes into first person view.
-
When that happens, the mouse cursor snaps to the middle of the screen and maintains focus on your character.
-
The problem this causes is that you can no longer scroll the ScrollingFrame, since the focus is on the character, and not the Scrolling Frame. This is especially problematic when you have a large ScrollingFrame covering most of the screen, since it is hard for the user to move the mouse to regain focus on the ScrollingFrame.
REPLICATION:
- Create a new project.
- Add a ScreenGui.
- Add a ScrollingFrame to the ScreenGui.
- Size the ScrollingFrame to that it takes up most of the screen, since this scenario is most problematic.
- Hit Play, and then scroll down a bit, and then back to the top, and keep scrolling upward with your mouse wheel. You will see the focus switch to your character, and the camera zooms in to first person. When this happens, the cursor is stuck in the middle, and the ScrollingFrame can no longer be scrolled.
SOLUTION:
The solution to this problem is when the scrollbar’s max top (or bottom) position has been reached, and the user keeps scrolling with a scroll wheel, then do not switch focus to the character. Keep the focus on the ScrollingFrame.