Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 792333004: Mousewhell on Chrome Android can scroll vertically and horizontally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index f32ec777efd211f0e59bcf39ea1d6b2b1dc7b87d..2219d44b538002f946119c357f4deb66b106bcb9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -1674,7 +1674,8 @@ public class ContentViewCore
nativeSendMouseWheelEvent(mNativeContentViewCore, event.getEventTime(),
event.getX(), event.getY(),
- event.getAxisValue(MotionEvent.AXIS_VSCROLL));
+ event.getAxisValue(MotionEvent.AXIS_VSCROLL),
+ event.getAxisValue(MotionEvent.AXIS_HSCROLL));
mContainerView.removeCallbacks(mFakeMouseMoveRunnable);
// Send a delayed onMouseMove event so that we end
@@ -3036,7 +3037,8 @@ public class ContentViewCore
long nativeContentViewCoreImpl, long timeMs, float x, float y);
private native int nativeSendMouseWheelEvent(
- long nativeContentViewCoreImpl, long timeMs, float x, float y, float verticalAxis);
+ long nativeContentViewCoreImpl, long timeMs, float x, float y, float verticalAxis,
+ float horizontalAxis);
private native void nativeScrollBegin(
long nativeContentViewCoreImpl, long timeMs, float x, float y, float hintX,
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698