You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/12/01 00:32:00 UTC

[jira] [Closed] (CB-11560) Default behaviour for tap on status bar not accessible anymore

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

jcesarmobile closed CB-11560.
-----------------------------
    Resolution: Duplicate

CB-13124 was created to add a configurable option to get the default behaviour 

Use this preference to use default behaviour instead of the statusTap
{code}
<preference name="StatusBarDefaultScrollToTop" value="true" />
{code}

> Default behaviour for tap on status bar not accessible anymore
> --------------------------------------------------------------
>
>                 Key: CB-11560
>                 URL: https://issues.apache.org/jira/browse/CB-11560
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>         Environment: iOS
>            Reporter: Philippe Wang
>            Assignee: Jesse MacFadyen
>
> Adding a JS event on status bar tap (https://issues.apache.org/jira/browse/CB-6626) is nice. But then the default behaviour is no longer available. So, in order to have the default behaviour back, I forked the plugin and reverted the patch (https://github.com/apache/cordova-plugin-statusbar/pull/4). I think it's a bad approach but for now I don't know what else I can do.
> I think there should be a configuration option to deactivate this. Or at least some documentation that explains how to have the default behaviour back.
> I do realise that the default behaviour is not perfect. Notably, it can only scroll the body of the page. For instance, if the page is a scrollable div (instead of a scrollable body), the default behaviour just doesn't work because the body will just eat the scroll directive without doing anything. So the JS event becomes a lot more relevant. However I have not managed to obtain the smooth default "tap on status bar" scroll up with a JS event listener.
> The scrollable div makes sense because of the sluggish scroll of body (even with `-webkit-overflow-scrolling: touch` it's still weirdly slow). 



--
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