سؤال

Is there a way to make the trigger.io native topbar scroll the webview to the top on click? I can't see an obvious way to listen for clicks on the topbar other than on buttons. We have a long list and would like to make clicking on the bar scroll the page to the top much like Safari does when you click the status bar.

هل كانت مفيدة؟

المحلول

There is currently no way of detecting clicks on the topbar from javascript. You could however add a button to the topbar and use $(window).scrollTop() in the button clicked event.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top