From e587b2870e633b2a8623a938f792178b8e8a5745 Mon Sep 17 00:00:00 2001 From: Katherina Marcenko <45818654+KatvonRivia@users.noreply.github.com> Date: Wed, 14 Oct 2020 17:42:49 +0200 Subject: [PATCH] fix(text-select): fix text select when moving globe (#685) --- src/scripts/components/layers/data-set-info/data-set-info.styl | 1 + src/scripts/components/layers/layer-legend/layer-legend.styl | 1 + src/scripts/components/layers/time-slider/time-slider.styl | 1 + 3 files changed, 3 insertions(+) diff --git a/src/scripts/components/layers/data-set-info/data-set-info.styl b/src/scripts/components/layers/data-set-info/data-set-info.styl index 91a0e0e6e..55d1d0e36 100644 --- a/src/scripts/components/layers/data-set-info/data-set-info.styl +++ b/src/scripts/components/layers/data-set-info/data-set-info.styl @@ -24,6 +24,7 @@ text-shadow: 0px 0px 2px $black font-weight: normal font-size: 1em + user-select: none .buttons display: flex diff --git a/src/scripts/components/layers/layer-legend/layer-legend.styl b/src/scripts/components/layers/layer-legend/layer-legend.styl index 1102c97ec..2ee166674 100644 --- a/src/scripts/components/layers/layer-legend/layer-legend.styl +++ b/src/scripts/components/layers/layer-legend/layer-legend.styl @@ -10,6 +10,7 @@ height: 40% color: white transform: translateY(-50%) + user-select: none .rightSided right: emCalc(22px) diff --git a/src/scripts/components/layers/time-slider/time-slider.styl b/src/scripts/components/layers/time-slider/time-slider.styl index 64ef33e5a..68ec75aba 100644 --- a/src/scripts/components/layers/time-slider/time-slider.styl +++ b/src/scripts/components/layers/time-slider/time-slider.styl @@ -34,6 +34,7 @@ compareThumb() width: 100% background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%) font-size: emCalc(16px) + user-select: none .container position: relative