mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-01-20 21:10:48 +01:00
fixing a glitch with popup keyboard disappearing instantly
This commit is contained in:
parent
3875b35348
commit
3735d727f4
@ -1050,10 +1050,12 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
mMiniKeyboard!!.invalidateAllKeys()
|
||||
}
|
||||
|
||||
if (coords[0] - me.x > mPopupMaxMoveDistance || // left
|
||||
me.x - (coords[0] + mMiniKeyboard!!.width) > mPopupMaxMoveDistance // right
|
||||
) {
|
||||
dismissPopupKeyboard()
|
||||
if (coords[0] > 0 || coords[1] > 0) {
|
||||
if (coords[0] - me.x > mPopupMaxMoveDistance || // left
|
||||
me.x - (coords[0] + mMiniKeyboard!!.measuredWidth) > mPopupMaxMoveDistance // right
|
||||
) {
|
||||
dismissPopupKeyboard()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user