Fixes a bug where dynamically added panels weren't taken into account when snapping after scrolling.

Also optimises the setting moment of the panel snap interval (needs renaming).