summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-06-13 08:16:32 +0200
committerSzymon Kłos <eszkadev@gmail.com>2022-06-13 09:02:50 +0200
commite4a9e4d3a9cd52dc98ec4f4267f36f21955c612d (patch)
tree131190d4e2dc584604a550f950d022e47f7cb07e
parentjsdialog: combobox is not a container type (diff)
downloadonline-e4a9e4d3a9cd52dc98ec4f4267f36f21955c612d.tar.gz
online-e4a9e4d3a9cd52dc98ec4f4267f36f21955c612d.zip
cursor: hide current not all
when other view moved cursor outside out view - all of them were hidden because we used selector for all the elements matching cursor class - instead of current instance Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: If97606f33e44ce59f747ad0b015048deacbe8657
-rw-r--r--browser/src/layer/marker/Cursor.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/browser/src/layer/marker/Cursor.ts b/browser/src/layer/marker/Cursor.ts
index 25fadb5200..73b1f3f94d 100644
--- a/browser/src/layer/marker/Cursor.ts
+++ b/browser/src/layer/marker/Cursor.ts
@@ -99,9 +99,9 @@ class Cursor {
addCursorClass(visible: boolean) {
if (visible)
- $('.leaflet-cursor').removeClass('blinking-cursor-hidden');
+ L.DomUtil.removeClass(this.cursor, 'blinking-cursor-hidden');
else
- $('.leaflet-cursor').addClass('blinking-cursor-hidden');
+ L.DomUtil.addClass(this.cursor, 'blinking-cursor-hidden');
}
isVisible(): boolean {