mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 04:49:45 +02:00
Fix last entities properties not scrolling when keyboard raised
This commit is contained in:
parent
e9a398472a
commit
8e44096981
1 changed files with 6 additions and 3 deletions
|
@ -25,12 +25,15 @@ function setUpKeyboardControl() {
|
|||
}
|
||||
|
||||
var delta = this.getBoundingClientRect().bottom + 10 - (document.body.clientHeight - KEYBOARD_HEIGHT);
|
||||
if (delta > 0) {
|
||||
document.body.scrollTop += delta;
|
||||
}
|
||||
|
||||
EventBridge.emitWebEvent("_RAISE_KEYBOARD");
|
||||
|
||||
if (delta > 0) {
|
||||
setTimeout(function () {
|
||||
document.body.scrollTop += delta;
|
||||
}, 500); // Allow time for keyboard to be raised in QML.
|
||||
}
|
||||
|
||||
isRaised = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue