loleaflet/src/control/Control.Header.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit e3b893dbc69aad870b7101d48e6230b0690953f2 Author: Marco Cecchetti <marco.cecche...@collabora.com> Date: Sun Dec 17 18:58:01 2017 +0100 calc: fixing auto optimal size on double-click Change-Id: I6341c617037cd876667681d4495f77e75cad8388 Reviewed-on: https://gerrit.libreoffice.org/46719 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 261b2958..8593052d 100644 --- a/loleaflet/src/control/Control.Header.js +++ b/loleaflet/src/control/Control.Header.js @@ -423,6 +423,10 @@ L.Control.Header = L.Control.extend({ this.onDragMove(this._item, this._start, this._offset, e); }, + _resetClickCount: function () { + this._clicks = 0; + }, + _onMouseUp: function (e) { // disable mouse events used on dragging L.DomEvent.off(document, 'mousemove', this._onMouseMoveForDragging, this); @@ -439,7 +443,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