diff options
| author | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-31 16:35:25 +0300 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-02 19:33:52 -0400 | 
| commit | 3d28a3a405273d8416ddc8976aaaff0c90ac057d (patch) | |
| tree | d1a00bd52d9c5f0962ec27d96c9f0aea13d322c5 | |
| parent | e4d302e786cdb052e5ab7311ca65abb0b49d56d0 (diff) | |
prevent closing new child popup on parent mouseout
| -rw-r--r-- | ext/fg/js/frontend.js | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 1dff6fb9..a31bdf79 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -56,6 +56,7 @@ class Frontend {              window.addEventListener('mousedown', this.onMouseDown.bind(this));              window.addEventListener('mousemove', this.onMouseMove.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('resize', this.onResize.bind(this)); @@ -149,6 +150,10 @@ class Frontend {          }      } +    onMouseOut(e) { +        this.popupTimerClear(); +    } +      onFrameMessage(e) {          const handlers = {              popupClose: () => { |