cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lu Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-13124) statusTap event is not triggered until momentum scrolling is complete
Date Thu, 27 Jul 2017 00:56:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lu Wang  updated CB-13124:
--------------------------
    Description: 
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.

  was:
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.


> 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


Mime
View raw message