diff --git a/src/nouislider.ts b/src/nouislider.ts index 7ef9bb8d..b2757504 100644 --- a/src/nouislider.ts +++ b/src/nouislider.ts @@ -2213,10 +2213,11 @@ function scope(target: TargetElement, options: ParsedOptions, originalOptions: O fireEvent("slide", handleNumber, true); fireEvent("update", handleNumber, true); - fireEvent("change", handleNumber, true); - fireEvent("set", handleNumber, true); - if (options.events.snap) { + if (!options.events.snap) { + fireEvent("change", handleNumber, true); + fireEvent("set", handleNumber, true); + } else { eventStart(event, { handleNumbers: [handleNumber] }); } }