Skip to content

Commit

Permalink
feat: don't warn about nested scroll containers
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Mar 10, 2024
1 parent 0662a9e commit 8bd8c77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/view/use-droppable-publisher/use-droppable-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import rafSchedule from 'raf-schd';
import { useMemo, useCallback } from 'use-memo-one';
import memoizeOne from 'memoize-one';
import { invariant } from '../../invariant';
import checkForNestedScrollContainers from './check-for-nested-scroll-container';
// import checkForNestedScrollContainers from './check-for-nested-scroll-container';
import * as dataAttr from '../data-attributes';
import { origin } from '../../state/position';
import getScroll from './get-scroll';
Expand Down Expand Up @@ -169,9 +169,9 @@ export default function useDroppablePublisher(args: Props) {
getListenerOptions(dragging.scrollOptions),
);
// print a debug warning if using an unsupported nested scroll container setup
if (process.env.NODE_ENV !== 'production') {
checkForNestedScrollContainers(scrollable);
}
// if (process.env.NODE_ENV !== 'production') {
// checkForNestedScrollContainers(scrollable);
// }
}

return dimension;
Expand Down

0 comments on commit 8bd8c77

Please sign in to comment.