diff options
author | Markus Koch <markus@notsyncing.net> | 2020-05-08 17:18:10 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-05-08 17:18:10 +0200 |
commit | cf5dccbc3a59163feda5d094755b571f6e24e830 (patch) | |
tree | 421b267648142e21c2ad03051452b8aa1fa60df1 /htdocs/mapscript.js | |
parent | e936b0c35b704627ec08c6205c7d7b060c866f08 (diff) | |
download | lifomapserver-cf5dccbc3a59163feda5d094755b571f6e24e830.tar.gz lifomapserver-cf5dccbc3a59163feda5d094755b571f6e24e830.tar.bz2 lifomapserver-cf5dccbc3a59163feda5d094755b571f6e24e830.zip |
Fix button behavior in editor
Stop event propagation of mouse up / down events.
Diffstat (limited to 'htdocs/mapscript.js')
-rw-r--r-- | htdocs/mapscript.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index 87991ce..d33e9e7 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -577,6 +577,8 @@ L.MyControl = L.Control.extend({ link.href = '#'; link.title = this.options.title; link.innerHTML = this.options.html; + L.DomEvent.on(link, 'mousedown', L.DomEvent.stop); + L.DomEvent.on(link, 'mouseup', L.DomEvent.stop); L.DomEvent.on(link, 'click', L.DomEvent.stop) .on(link, 'click', function () { window.LAYER = this.options.callback.call(); |