android - scroll to top in a webview when clicking status bar in IOS (not native implementation) -
my app works webviews , i'm trying implement scroll top when clicking status bar in ios. using cordova plugin statustap detect when status bar clicked , managed scroll top work without native code. problem if clicking status bar while in scroll, view kind of gets seizures , jumps around.
my code far:
window.addeventlistener('statustap', onstatustap); function onstatustap() { var appscontainer = $("#apps-container"); appscontainer.animate({scrolltop: element.offset().top}, "slow"); }
i tried listening scrolls , not can't away fact during scrolls value of
$("#apps-container").scrolltop
doesn't change it's impossible know if scroll taking place.
does have idea non-native solution? in advance.
Comments
Post a Comment