cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masashi Katsumata (JIRA)" <>
Subject [jira] [Commented] (CB-5445) Support onScrollChanged message on CordovaWebView
Date Tue, 07 Apr 2015 21:19:14 GMT


Masashi Katsumata commented on CB-5445:

Thanks for your reply.
Actually I prefer onScrollChanged event than addOnScrollChangedListener().
My plugin have to synchronize the position of the custom view with the webview(android) scrolled

Anyway, I tested addOnScrollChangedListener(), but it also does not work.

cordova.getActivity().runOnUiThread(new Runnable() {
  public void run() {
    webView.getViewTreeObserver().addOnScrollChangedListener(new OnScrollChangedListener()

      public void onScrollChanged() {
        Log.d("OnScrollChangedListener", " ---> OnScrollChangedListener");

> Support onScrollChanged message on CordovaWebView
> -------------------------------------------------
>                 Key: CB-5445
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
> In the event that someone wishes to implement native components over top of Cordova,
we need a way to make sure they adjust to where they should be on the screen in the event
of scrolling.  Currently plugins can do this with JS, but there's a serious delay caused by
the bridge.  Since scrolling is controlled by Java anyway, we should keep these events at
this level and avoid the bridge, which is why we should pass onScrollChanged to the plugins.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message