@yogiswara/honcho-editor-ui 3.0.4 → 3.1.0
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.
|
@@ -24,7 +24,7 @@ export default function useSliderEvents(onDragStart, onDragEnd, isBatchMode) {
|
|
|
24
24
|
};
|
|
25
25
|
// Attach a single "start" listener to the specific element (the thumb).
|
|
26
26
|
element.addEventListener('pointerdown', handleDragStart);
|
|
27
|
-
// Cleanup function when the component unmounts
|
|
27
|
+
// Cleanup function when the component unmounts
|
|
28
28
|
return () => {
|
|
29
29
|
element.removeEventListener('pointerdown', handleDragStart);
|
|
30
30
|
// Ensure any lingering window listeners are also removed.
|