Kaydet (Commit) 3c4fd273 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

android: hide the keyboard when scrolling velocity exceeds 18

Change-Id: Ibc3c1e384e73f0ecdd10f5a0c8972a04e4101a59
üst 98b12bf7
...@@ -274,6 +274,11 @@ public class JavaPanZoomController ...@@ -274,6 +274,11 @@ public class JavaPanZoomController
} }
private boolean handleTouchMove(MotionEvent event) { private boolean handleTouchMove(MotionEvent event) {
if (mState == PanZoomState.PANNING_LOCKED || mState == PanZoomState.PANNING) {
if (getVelocity() > 18.0f) {
LibreOfficeMainActivity.mAppContext.hideSoftKeyboard();
}
}
switch (mState) { switch (mState) {
case FLING: case FLING:
...@@ -418,7 +423,6 @@ public class JavaPanZoomController ...@@ -418,7 +423,6 @@ public class JavaPanZoomController
} else { } else {
setState(PanZoomState.PANNING); setState(PanZoomState.PANNING);
} }
//LibreOfficeMainActivity.mAppContext.hideSoftKeyboard();
} }
private float panDistance(MotionEvent move) { private float panDistance(MotionEvent move) {
......
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