| Index: content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java b/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
|
| index 3a52db4015a8f56f8b68f8c3cc3a5b6458158e83..70c65199db63c9dbeb73ea1b83af69ca796d687f 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
|
| @@ -106,8 +106,9 @@ public class GestureDetector {
|
| * that trigged it.
|
| *
|
| * @param e The initial on down motion event that started the longpress.
|
| + * @return true if the event is consumed, else false
|
| */
|
| - void onLongPress(MotionEvent e);
|
| + boolean onLongPress(MotionEvent e);
|
|
|
| /**
|
| * Notified of a fling event when it occurs with the initial on down {@link MotionEvent}
|
| @@ -172,7 +173,8 @@ public class GestureDetector {
|
| return false;
|
| }
|
|
|
| - public void onLongPress(MotionEvent e) {
|
| + public boolean onLongPress(MotionEvent e) {
|
| + return false;
|
| }
|
|
|
| public boolean onScroll(MotionEvent e1, MotionEvent e2,
|
| @@ -708,7 +710,10 @@ public class GestureDetector {
|
| private void dispatchLongPress() {
|
| mHandler.removeMessages(TAP);
|
| mDeferConfirmSingleTap = false;
|
| +/* Changed in Chromium to allow scrolling after a longpress.
|
| mInLongPress = true;
|
| mListener.onLongPress(mCurrentDownEvent);
|
| +*/
|
| + mInLongPress = mListener.onLongPress(mCurrentDownEvent);
|
| }
|
| }
|
|
|