mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-14 04:39:23 +00:00
fix(web): detaches base-page touch handlers on shutdown
This commit is contained in:
parent
b452092765
commit
a6289f4f0f
1 changed files with 7 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ namespace com.keyman.dom {
|
|||
// On shutdown, we remove our general focus-suppression handlers as well.
|
||||
this.keyman.util.detachDOMEvent(document.body, 'focus', DOMManager.suppressFocusCheck, true);
|
||||
this.keyman.util.detachDOMEvent(document.body, 'blur', DOMManager.suppressFocusCheck, true);
|
||||
|
||||
// Also, the base-page touch handlers for activation management.
|
||||
if(this.touchStartActivationHandler) {
|
||||
this.keyman.util.detachDOMEvent(document.body, 'touchstart', this.touchStartActivationHandler, false);
|
||||
this.keyman.util.detachDOMEvent(document.body, 'touchmove', this.touchMoveActivationHandler, false);
|
||||
this.keyman.util.detachDOMEvent(document.body, 'touchend', this.touchEndActivationHandler, false);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("Error occurred during shutdown");
|
||||
console.error(e);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue