loleaflet/src/control/Control.Header.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit d18e4e1c4ca3d952d79d425cd5ee662e33e38cdd Author: Marco Cecchetti <marco.cecche...@collabora.com> Date: Sun Dec 17 19:03:51 2017 +0100 calc: fixing auto optimal size on double-click Change-Id: I6341c617037cd876667681d4495f77e75cad8388 Reviewed-on: https://gerrit.libreoffice.org/46718 Reviewed-by: Marco Cecchetti <mrcek...@gmail.com> Tested-by: Marco Cecchetti <mrcek...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/46897 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/loleaflet/src/control/Control.Header.js b/loleaflet/src/control/Control.Header.js index d3b9c32d..7af14c3b 100644 --- a/loleaflet/src/control/Control.Header.js +++ b/loleaflet/src/control/Control.Header.js @@ -293,6 +293,10 @@ L.Control.Header = L.Control.extend({ this.onDragMove(this._item, this._start, this._offset, e); }, + _resetClickCount: function () { + this._clicks = 0; + }, + _onMouseUp: function (e) { L.DomEvent.off(document, 'mousemove', this._onMouseMove, this); L.DomEvent.off(document, 'mouseup', this._onMouseUp, this); @@ -308,7 +312,7 @@ L.Control.Header = L.Control.extend({ this._clicks = 0; } else { this.onDragClick(this._item, ++this._clicks, e); - setTimeout(L.bind(this.initialize, this), 400); + setTimeout(L.bind(this._resetClickCount, this), 400); } this._item = this._start = this._offset = null; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits