You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2014/01/22 20:38:36 UTC

[25/50] [abbrv] git commit: Updated CordovaWebView to experiment with onScrollChanged messages

Updated CordovaWebView to experiment with onScrollChanged messages


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/ea0ae1d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/ea0ae1d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/ea0ae1d4

Branch: refs/heads/master
Commit: ea0ae1d4044af0fa4716b51d5d564ae0b964c15e
Parents: a4029b2
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Nov 18 11:08:43 2013 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Wed Jan 22 11:37:18 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/ea0ae1d4/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 44bd9fc..e6d911f 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -621,6 +621,15 @@ public class CordovaWebView extends AmazonWebView {
         this.loadUrlIntoView(url);
     }
     
+    
+    public void onScrollChanged(int l, int t, int oldl, int oldt)
+    {
+        super.onScrollChanged(l, t, oldl, oldt);
+        //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);
+    }
+    
     /**
      * Send JavaScript statement back to JavaScript.
      * (This is a convenience method)