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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -