diff --git a/assets/js/pages/booking.js b/assets/js/pages/booking.js index 0d5b1527..096e2cd8 100644 --- a/assets/js/pages/booking.js +++ b/assets/js/pages/booking.js @@ -424,6 +424,13 @@ App.Pages.Booking = (function () { $('#step-' + nextTabIndex).addClass('active-step'); $('#wizard-frame-' + nextTabIndex).fadeIn(); }); + + // Scroll to the top of the page. On a small screen, especially on a mobile device, this is very useful. + const scrollingElement = (document.scrollingElement || document.body); + if (window.innerHeight < scrollingElement.scrollHeight) { + scrollingElement.scrollTop = 0; + } + }); /**