fluent-svelte-extra 1.4.9 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,9 +81,11 @@ const bufferValueToPercentage = v => (v * 100) / max;
81
81
 
82
82
  */
83
83
  function cancelMove() {
84
+ if (holding) {
85
+ dispatch("userHoldEnd");
86
+ }
84
87
  holding = false;
85
88
  dragging = false;
86
- dispatch("userHoldEnd");
87
89
  }
88
90
  function handleMove() {
89
91
  if (holding)
@@ -206,7 +208,6 @@ A slider is a control that lets the user select from a range of values by moving
206
208
  on:mousedown|preventDefault={() => {
207
209
  holding = true;
208
210
  dragging = true;
209
- console.log("selam");
210
211
  dispatch("userHoldStart");
211
212
  }}
212
213
  on:mouseup|preventDefault={() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-svelte-extra",
3
- "version": "1.4.9",
3
+ "version": "1.5.1",
4
4
  "description": "A faithful implementation of Microsoft's Fluent Design System in Svelte.",
5
5
  "homepage": "https://github.com/OpenAnime/fluent-svelte-extra",
6
6
  "license": "MIT",