CB-5445: Adding onScrollChanged and the ScrollEvent object. (Forgot to add the WebView)

This commit is contained in:
Joe Bowser 2013-11-27 11:51:22 -08:00
parent 0b7570c9ee
commit e339a7583c

View File

@ -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);
}
/**