diff --git a/src/hooks/useClickAndDrag.ts b/src/hooks/useClickAndDrag.ts index 9178cd7..b36a252 100644 --- a/src/hooks/useClickAndDrag.ts +++ b/src/hooks/useClickAndDrag.ts @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useState } from 'react'; -import { fromEvent, merge, of } from 'rxjs'; +import { fromEvent, merge, Observable, of } from 'rxjs'; import { delay, filter, @@ -86,7 +86,7 @@ export function useClickAndDrag( const move$ = merge(mouseMove$, touchMove$).pipe(map(mapCoordsToContainer)); - const box$: rxjs.Observable = dragStart$.pipe( + const box$: Observable = dragStart$.pipe( tap(() => { setIsDragging(true); setHasFinishedDragging(false);