From b46d204a82c795c5e08bee773caa84cd567f1e03 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 30 Nov 2023 14:47:13 +0100 Subject: [PATCH] reset sawChangeEvent flag on mousedown, and on init --- src/fontra/client/web-components/range-slider.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fontra/client/web-components/range-slider.js b/src/fontra/client/web-components/range-slider.js index ea0f0d389..d357dfcea 100644 --- a/src/fontra/client/web-components/range-slider.js +++ b/src/fontra/client/web-components/range-slider.js @@ -178,6 +178,7 @@ export class RangeSlider extends html.UnlitElement { this.step = "any"; this.sawMouseDown = false; this.sawMouseUp = false; + this.sawChangeEvent = false; this.onChangeCallback = () => {}; this.values = []; } @@ -381,6 +382,7 @@ export class RangeSlider extends html.UnlitElement { this.sawChangeEvent = false; }, onmousedown: (event) => { + this.sawChangeEvent = false; this.sawMouseDown = true; this.sawMouseUp = false; const activeElement = document.activeElement;