mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
chore(web): cleans up a timeout func
This commit is contained in:
parent
ed48e94f2c
commit
56efa71fff
1 changed files with 3 additions and 4 deletions
|
|
@ -807,10 +807,9 @@ export class AttachmentEngine extends EventEmitter<EventMap> {
|
|||
if(!this.keyman.util.device.touchable) {
|
||||
this.listInputs();
|
||||
} else if(this.keyman.util.device.touchable) { // If something was added or removed, chances are it's gonna mess up our touch-based layout scheme, so let's update the touch elements.
|
||||
var domManager = this;
|
||||
window.setTimeout(function() {
|
||||
domManager.listInputs();
|
||||
}.bind(this), 1);
|
||||
window.setTimeout(() => {
|
||||
this.listInputs();
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
}.bind(this);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue