Fix current position marker and auto-close menu on small devices during route change