Kaydet (Commit) 98b12bf7 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

android: transition first, then move the viewport to the cursor

Change-Id: Iabc9b45dc3198472adda9b6fad1d531c41635f00
üst 0b2a8587
......@@ -156,14 +156,14 @@ public class InvalidationHandler implements Document.MessageCallback {
mDocumentOverlay.positionCursor(cursorRectangle);
mDocumentOverlay.positionHandle(SelectionHandle.HandleType.MIDDLE, cursorRectangle);
if (mState == OverlayState.TRANSITION || mState == OverlayState.CURSOR) {
changeStateTo(OverlayState.CURSOR);
}
if (mKeyEvent) {
moveViewportToMakeCursorVisible(cursorRectangle);
mKeyEvent = false;
}
if (mState == OverlayState.TRANSITION || mState == OverlayState.CURSOR) {
changeStateTo(OverlayState.CURSOR);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment