am 1733bd3d: Merge "Fix: Insertion handle can be moved just by tapping." into mnc-dev

* commit '1733bd3defde7818940d72dac95bb18fb8d70b22':
  Fix: Insertion handle can be moved just by tapping.
This commit is contained in:
Keisuke Kuroyanagi
2015-05-22 15:19:54 +00:00
committed by Android Git Automerger

View File

@@ -3770,7 +3770,8 @@ public class Editor {
}
mTouchToWindowOffsetY = newVerticalOffset + mLastParentY;
final float newPosX = rawX - mTouchToWindowOffsetX + mHotspotX;
final float newPosX =
rawX - mTouchToWindowOffsetX + mHotspotX + getHorizontalOffset();
final float newPosY = rawY - mTouchToWindowOffsetY + mTouchOffsetY;
updatePosition(newPosX, newPosY);