My web application is here: https://www.snowpacktracker.com/btac/snowpacktracker
On desktop, everything with scrolling is fine. However, on mobile (particularly on an iPad), any attempt to touch scroll down snaps the page back to the top. I have noticed that if I fight past the jumpiness (which is difficult) and get the page to scroll down so the header is not visible, then scrolling works normally, so perhaps something in the header is responsible. For whatever reason, I am unable to reproduce this on a desktop with devtools set to mobile dimensions, only reproducible on a mobile device (but maybe this is just me not using devtools correctly).
Here is a screen recording (on iPad) to demonstrate the problem: https://vimeo.com/661613444
Here is some minimal info on my setup:
Bokeh web application, using Flask to render the Bokeh content within an html template (base.html
). The header uses a Bootstrap container-fluid
class, in addition to Bootstrap classes for the navigation buttons. I also have a custom style.css
used to over-ride certain classes in the base template. Of relevance in style.css
might be:
.placeholderbokehapp-snowpack {
background-color: white;
padding-right: 20px;
padding-left: 20px;
padding-top: 15px;
padding-bottom: 15px;
min-height: 300px;
}
.container-fluid {
padding-right: 20px;
padding-left: 20px;
min-width: 1100px;
}
Besides imported js libraries for Bokeh, jquery, popper and bootstrap, I have custom js to define the spinning wheel for loading, and a resize sensor to stop the spinning wheel when the page dimension changes.
bokeh==2.4.1, Flask==1.1.2, jquery==3.3.1, popper==1.14.3, bootstrap==4.1.3
Happy to provide any additional details as needed.