From 5e54da51f9f213630b3ba59e45e4d06508a3bd29 Mon Sep 17 00:00:00 2001 From: Maximiliano Ruani Date: Tue, 22 Jun 2021 16:58:38 -0400 Subject: [PATCH] Support svelte 3.31.2 version Reference: https://github.com/sveltejs/svelte/issues/5907 --- src/RangePips.svelte | 5 ++++- src/RangeSlider.svelte | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/RangePips.svelte b/src/RangePips.svelte index 6fee4d1..d6d011d 100644 --- a/src/RangePips.svelte +++ b/src/RangePips.svelte @@ -110,7 +110,10 @@ top: 0; left: 0.75em; } - :global(.rangePips .pip, .rangePips .pipVal) { + :global(.rangePips .pip) { + transition: all 0.15s ease; + } + :global(.rangePips .pipVal) { transition: all 0.15s ease; } :global(.rangePips .pip) { diff --git a/src/RangeSlider.svelte b/src/RangeSlider.svelte index 96518bd..bed48b7 100644 --- a/src/RangeSlider.svelte +++ b/src/RangeSlider.svelte @@ -566,8 +566,9 @@ height: 0.5em; margin: 1em; transition: opacity 0.2s ease; + user-select: none; } - :global(.rangeSlider, .rangeSlider *) { + :global(.rangeSlider *) { user-select: none; } :global(.rangeSlider.pips) {