loleaflet/src/layer/marker/Cursor.js | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 86db1912df690f56fcf89d04b5cf5905b96355d5 Author: Tamás Zolnai <tamas.zol...@collabora.com> Date: Tue May 22 19:09:56 2018 +0200 lok: Restart blinking animation when moving the cursor It provides a better user experienc that the user see the cursor at the new positin (not in invisible state). Change-Id: Ifa4b9c65b13901fec0c606422a7bd2a292d85608 Reviewed-on: https://gerrit.libreoffice.org/54679 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> (cherry picked from commit 15f42c493b97a58d903a50b476d7a63bf3be61ad) Reviewed-on: https://gerrit.libreoffice.org/54694 diff --git a/loleaflet/src/layer/marker/Cursor.js b/loleaflet/src/layer/marker/Cursor.js index 792a13485..8be48906f 100644 --- a/loleaflet/src/layer/marker/Cursor.js +++ b/loleaflet/src/layer/marker/Cursor.js @@ -105,6 +105,12 @@ L.Cursor = L.Layer.extend({ _setPos: function (pos) { L.DomUtil.setPosition(this._container, pos); this._container.style.zIndex = this.options.zIndex; + // Restart blinking animation + if (this.options.blink) { + L.DomUtil.removeClass(this._cursor, 'blinking-cursor'); + void this._cursor.offsetWidth; + L.DomUtil.addClass(this._cursor, 'blinking-cursor'); + } }, _setSize: function () { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits