+
-
diff --git a/src/lib/color-picker.component.ts b/src/lib/color-picker.component.ts
index 27f099b..1b8bff6 100644
--- a/src/lib/color-picker.component.ts
+++ b/src/lib/color-picker.component.ts
@@ -326,11 +326,15 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewInit {
}
}
- public onDragEnd(slider: string): void {
+ public onDragEnd(event: Event, slider: string): void {
+ event.stopPropagation();
+
this.directiveInstance.sliderDragEnd({ slider: slider, color: this.outputColor });
}
- public onDragStart(slider: string): void {
+ public onDragStart(event: Event, slider: string): void {
+ event.stopPropagation();
+
this.directiveInstance.sliderDragStart({ slider: slider, color: this.outputColor });
}