src/presentation/components/Scripts/Slider/UseDragHandler.ts
Function useDragHandler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useDragHandler(
draggableElementRef: Readonly<Ref<HTMLElement | undefined>>,
dragDomModifier: DragDomModifier = new GlobalDocumentDragDomModifier(),
throttler = throttle,
onTeardown: LifecycleHook = onUnmounted,