ScrollViewer freeze control bug?

So I’m pretty positive there is something wrong with it this time. But just to be sure, I’m posting here instead of at Bugs. The rendering optimization PG for scrollviewer will fail when freeze controls is toggled when scroll bars are not at the top/left.

PG: Babylon.js Playground

Steps to repro:
a) click on freezeControls, make sure checkbox is highlighted. The layout and renderCalls will drop significantly but the buttons are visible and won’t move.
b) Scroll to the bottom, the buttons will scroll correctly.
c) now click on freezeControls again to toggle it off. Nothing should happen except the layout and calls will shoot up.
d) now click on freezeControls again to toggle it on. Nothing should happen except the layout and calls will drop.
e) now click on freezeControls again to toggle it off. You should see a jump in the position of the buttons.
e) now click on freezeControls again to toggle it on. You should see an empty window devoid of buttons.

If the scrollbars are kept as is (top and left), toggling freezeControls will have no effect on the position of the buttons. Wai ?

It’s definitely a bug, having a look right now.

2 Likes

PR is on its way:

2 Likes

Tested, fix worked. Thank you! :smiley:

1 Like