Skip to content

Commit

Permalink
reset sawChangeEvent flag on mousedown, and on init
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 30, 2023
1 parent 439d667 commit b46d204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fontra/client/web-components/range-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b46d204

Please sign in to comment.