@cloud-ru/ds-bottom-sheet 2.0.10-preview-06965406.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.
@@ -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;