commit 3daae2790d4a3d78b91c1ad1e52d72115bbddc05 parent 43da54eeeb23e6df251ff741fd8dd854498aba9d Author: Sergej Orlov <wladimirych@gmail.com> Date: Fri, 17 Jan 2025 23:00:20 +0100 vendored/FunctionButton: pass original click event Diffstat:
M | src/vendored/mapbbcode/FunctionButton.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/vendored/mapbbcode/FunctionButton.js b/src/vendored/mapbbcode/FunctionButton.js @@ -138,7 +138,8 @@ L.FunctionButtons = L.Control.extend({ if( button ) { if( 'callback' in button ) button.callback.call(button.context); - this.fire('clicked', { idx: link._buttonIndex }); + e.idx = link._buttonIndex; + this.fire('clicked', e); } } }