@cloud-ru/ds-bottom-sheet 2.0.10-preview-052d8f8a.0 → 2.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/BottomSheetCustom/hooks/useDragEngine.js +0 -4
- package/dist/esm/components/BottomSheetCustom/hooks/useDragEngine.js +0 -4
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/components/BottomSheetCustom/hooks/useDragEngine.ts +0 -3
|
@@ -194,9 +194,6 @@ export function useDragEngine({
|
|
|
194
194
|
const onPointerDown = useCallback(
|
|
195
195
|
(event: ReactPointerEvent<HTMLDivElement>) => {
|
|
196
196
|
if (!swipeEnabled || !isActive) return;
|
|
197
|
-
// События вложенного React-портала всплывают в родительский sheet, хотя его DOM
|
|
198
|
-
// не содержит цель жеста. Такой жест принадлежит только вложенной панели.
|
|
199
|
-
if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target)) return;
|
|
200
197
|
if (!event.isPrimary || pointerId.current !== null) return;
|
|
201
198
|
if (event.pointerType === 'mouse' && event.button !== 0) return;
|
|
202
199
|
if (event.target instanceof Element && event.target.closest(NO_DRAG_SELECTOR)) return;
|