diff --git a/src/FillSpace.jsx b/src/FillSpace.jsx index 498e423..2b06748 100644 --- a/src/FillSpace.jsx +++ b/src/FillSpace.jsx @@ -211,6 +211,7 @@ class FillSpace extends Component { _handleWheel = (event) => { const { items } = this.props; if (!Array.isArray(items)) return; + if (this.ref && event.target && !this.ref.contains(event.target)) return; const { pageSize, currentPage } = this.state; const pageCount = Math.max(1, Math.ceil(items.length / Math.max(1, pageSize))); const delta = event.deltaY || 0;