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.
- package/Slider/Slider.svelte +3 -2
- package/package.json +1 -1
package/Slider/Slider.svelte
CHANGED
|
@@ -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