linting, tenant slug -> name
This commit is contained in:
@@ -35,16 +35,17 @@ const useDocumentDrag = () => {
|
||||
if (capturedTarget && typeof capturedTarget.releasePointerCapture === 'function') {
|
||||
try {
|
||||
capturedTarget.releasePointerCapture(pointerId);
|
||||
} catch (
|
||||
// eslint-disable-next-line no-empty
|
||||
error
|
||||
) {}
|
||||
} catch (error) {
|
||||
if (debugDrag) {
|
||||
console.warn('[skeuo] releasePointerCapture failed', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
dragStateRef.current = null;
|
||||
setDraggingId((current) => (current === state.docId ? null : current));
|
||||
syncLayoutSnapshot();
|
||||
},
|
||||
[setDraggingId, syncLayoutSnapshot],
|
||||
[debugDrag, setDraggingId, syncLayoutSnapshot],
|
||||
);
|
||||
|
||||
const handlePointerDown = useCallback(
|
||||
@@ -83,10 +84,11 @@ const useDocumentDrag = () => {
|
||||
if (capturedTarget && typeof capturedTarget.setPointerCapture === 'function') {
|
||||
try {
|
||||
capturedTarget.setPointerCapture(event.pointerId);
|
||||
} catch (
|
||||
// eslint-disable-next-line no-empty
|
||||
error
|
||||
) {}
|
||||
} catch (error) {
|
||||
if (debugDrag) {
|
||||
console.warn('[skeuo] setPointerCapture failed', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
dragStateRef.current = {
|
||||
docId,
|
||||
|
||||
Reference in New Issue
Block a user