From db778e11b5177e492c9d11d70dcfc1b59b76064f Mon Sep 17 00:00:00 2001 From: tm8544 <15167679+tm8544@users.noreply.github.com> Date: Sun, 12 May 2024 10:31:09 +0300 Subject: [PATCH] Update booking.js This was merged 17.4. 2024, but it was lost lost on merges on 11.5.2024. --- assets/js/pages/booking.js | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } + }); /**