watusi / jquery-mobile-iscrollview

JQuery Mobile widget plug-in for easy use of the iScroll javascript scroller.
408 stars 183 forks source link

how can I programmatically open up pullDown #137

Closed waxie closed 10 years ago

waxie commented 10 years ago

What is the best method to programmatically make the "pull-to-refresh" visible / open up?

I would like the pull-to-refresh to show/stay opened if loading failed or there is no network connection.

I tried programmatically scrolling and setting MinScrollY with different results.

$myscrollview = $('#panel').data("mobileIscrollview"); $myscrollview.minScrollY(0); $myscrollview.scrollTo(0,-$myscrollview.options.topOffset,0,true);

This does not always seem to work, and page creation events seem to reset the pulldown box to disappear again.

waxie commented 10 years ago

The problem was iscrollview refresh was pulled after pulling down the box