cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [24/50] [abbrv] git commit: CB-5445: Adding onScrollChanged and the ScrollEvent object. (Forgot to add the WebView)
Date Wed, 22 Jan 2014 19:38:35 GMT
CB-5445: Adding onScrollChanged and the ScrollEvent object. (Forgot to add the WebView)


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/b8322423
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/b8322423
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/b8322423

Branch: refs/heads/master
Commit: b8322423f19d7acd3a08c452249229cdf9f404fe
Parents: ea0ae1d
Author: Joe Bowser <bowserj@apache.org>
Authored: Wed Nov 27 11:51:22 2013 -0800
Committer: Joe Bowser <bowserj@apache.org>
Committed: Wed Jan 22 11:37:18 2014 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaWebView.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/b8322423/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index e6d911f..9e70a9d 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -628,6 +628,8 @@ public class CordovaWebView extends AmazonWebView {
         //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);
     }
     
     /**


Mime
View raw message