mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
commit
b0ffe4ff1f
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue