Fixed bug where if there was zero velocity when opening the sidebar, it could get stuck.