Commit 1682af4c authored by avi.nitk@samsung.com's avatar avi.nitk@samsung.com

Fix Handle above IME issue

Added flag to check if IME state is updated
This will prevent resetting of mFocusPreOSKViewportRect
on onTouchEvent.

So, if cancelRequestToScrollFocusedEditableNodeIntoView()
is triggerred from onTouchEvent()<ACTION_MOVE> and it
happens before onSizeChanged is triggerred, then the
input field will not be scrolled to view.

BUG=393948

Review URL: https://codereview.chromium.org/392943002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283434 0039d316-1c4b-4281-b951-d872f2087c98
parent f68eb456
......@@ -1171,10 +1171,12 @@ public class ContentViewCore
public boolean onTouchEvent(MotionEvent event) {
TraceEvent.begin("onTouchEvent");
try {
cancelRequestToScrollFocusedEditableNodeIntoView();
int eventAction = event.getActionMasked();
if (eventAction == MotionEvent.ACTION_DOWN) {
cancelRequestToScrollFocusedEditableNodeIntoView();
}
if (isSPenSupported(mContext))
eventAction = convertSPenEventAction(eventAction);
......
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