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

This commit is contained in:
Keisuke Kuroyanagi
2015-05-22 02:28:23 +00:00
committed by Android (Google) Code Review

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);