mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
CB-5445: Adding onScrollChanged and the ScrollEvent object. (Forgot to add the WebView)
This commit is contained in:
parent
0b7570c9ee
commit
e339a7583c
@ -524,6 +524,8 @@ public class CordovaWebView extends WebView {
|
||||
//We should post a message that the scroll changed
|
||||
LOG.d(TAG, "Scroll changed: oldl = %d, l = %d", oldl, l);
|
||||
LOG.d(TAG, "Scroll changed: oldt = %d, t = %d", oldt, t);
|
||||
ScrollEvent myEvent = new ScrollEvent(l, t, oldl, oldt, this);
|
||||
this.postMessage("onScrollChanged", myEvent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user