Hide popup on scroll and resize
This commit is contained in:
parent
baec1dd58a
commit
98170a71ed
@ -30,6 +30,8 @@ class Client {
|
||||
window.addEventListener('mousedown', this.onMouseDown.bind(this));
|
||||
window.addEventListener('mousemove', this.onMouseMove.bind(this));
|
||||
window.addEventListener('keydown', this.onKeyDown.bind(this));
|
||||
window.addEventListener('scroll', (e) => this.hidePopup());
|
||||
window.addEventListener('resize', (e) => this.hidePopup());
|
||||
this.popup.mousedown((e) => e.stopPropagation());
|
||||
this.popup.scroll((e) => e.stopPropagation());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user