prevent closing new child popup on parent mouseout

This commit is contained in:
siikamiika 2019-08-31 16:35:25 +03:00 committed by toasted-nutbread
parent e4d302e786
commit 3d28a3a405

View File

@ -56,6 +56,7 @@ class Frontend {
window.addEventListener('mousedown', this.onMouseDown.bind(this)); window.addEventListener('mousedown', this.onMouseDown.bind(this));
window.addEventListener('mousemove', this.onMouseMove.bind(this)); window.addEventListener('mousemove', this.onMouseMove.bind(this));
window.addEventListener('mouseover', this.onMouseOver.bind(this)); window.addEventListener('mouseover', this.onMouseOver.bind(this));
window.addEventListener('mouseout', this.onMouseOut.bind(this));
window.addEventListener('mouseup', this.onMouseUp.bind(this)); window.addEventListener('mouseup', this.onMouseUp.bind(this));
window.addEventListener('resize', this.onResize.bind(this)); window.addEventListener('resize', this.onResize.bind(this));
@ -149,6 +150,10 @@ class Frontend {
} }
} }
onMouseOut(e) {
this.popupTimerClear();
}
onFrameMessage(e) { onFrameMessage(e) {
const handlers = { const handlers = {
popupClose: () => { popupClose: () => {