google chrome - jquery mobile scroll to top when scrolling back -


I have a problem with jquery mobile I have a long dom with several li elements but this is not a list view . When I scroll down everything is fine, but when I scroll a little bit, the page jumps to the top of the page

There is only one idea how do I handle it?

The effect is only on my smartphone with a Chrome browser.

Thank you.

I tried updating the layout of UI content but it does not help.

  $ (".ui-content"). Trigger ("updatelayout");  

I think that when I scroll some px at the top, then the window's displayed navbar and page changes the window size while jumping on top.

For this problem, jQuery.mobile.silentScroll () jQuery Scroll through jQuery Scroll event without triggering the listeners The position of a particular wi This method does not execute animated scrolling.

  & lt; Script & gt; $ (Document) .on ('click', '.returnopAction', function () {$ .mobile.silentScroll (0);}); & Lt; / Script & gt;  

In addition to this, you can use the code given below, which allows animated scrolling:

   

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -