You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/27 00:48:00 UTC

[jira] [Commented] (CB-13124) statusTap event is not triggered until momentum scrolling is complete

    [ https://issues.apache.org/jira/browse/CB-13124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16102535#comment-16102535 ] 

ASF GitHub Bot commented on CB-13124:
-------------------------------------

GitHub user lunaru opened a pull request:

    https://github.com/apache/cordova-plugin-statusbar/pull/83

    CB-13124: Add option for native scroll-to-top on WebView

    ### Platforms affected
    iOS
    
    ### What does this PR do?
    Adds "StatusBarDefaultScrollToTop" option to allow developer to re-enable native scroll-to-top behavior on the WebView
    
    The motivation for this is described here: https://issues.apache.org/jira/browse/CB-13124


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lunaru/cordova-plugin-statusbar master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-statusbar/pull/83.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #83
    
----
commit d215a30bc143c163651914d16426d952ff90d677
Author: Lu Wang <ul...@gmail.com>
Date:   2017-07-26T22:59:36Z

    scrollViewShouldScrollToTop to YES
    
    Make scroll to top happen

commit 5719ab8acfee0fda3da94dd7ecb4071f8b650633
Author: Lu Wang <ul...@gmail.com>
Date:   2017-07-27T00:22:30Z

    Add preference for native scroll to top
    
    Allow default web scroll view to use native scroll to top

commit 09887dea712162cf50134d3f192ff61de636274a
Author: Lu Wang <ul...@gmail.com>
Date:   2017-07-27T00:30:49Z

    Update Readme for StatusBarDefaultScrollToTop

----


> statusTap event is not triggered until momentum scrolling is complete
> ---------------------------------------------------------------------
>
>                 Key: CB-13124
>                 URL: https://issues.apache.org/jira/browse/CB-13124
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>    Affects Versions: cordova@7.0.0
>            Reporter: Lu Wang 
>            Priority: Minor
>
> The statusTap event isn't triggered until the momentum scrolling is complete. 
> To reproduce:
> 1. Create an app that has a natural scrolling body (not 100% height div with overflow-x set to "auto" and -webkit-overflow-scrolling set to "touch"). This means a standard WebView with an expanding body
> 2. Flick the screen to scroll and notice that momentum/inertial scroll triggers.
> 3. During momentum scrolling, tap the status bar
> 4. Note there is no event fired until the scrolling has stopped.
> There isn't a great way to fix this since the events are triggered in cordova.js with a setTimeout. I have a PR available to fix this by adding a config option to StatusBar that enables the native scroll-to-top behavior.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org