File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 386386 const reachBoundaryX = distX > 0 ? pos .x >= this .scroll .minScrollX : distX < 0 ? pos .x <= this .scroll .maxScrollX : false
387387 const reachBoundaryY = distY > 0 ? pos .y >= this .scroll .minScrollY : distY < 0 ? pos .y <= this .scroll .maxScrollY : false
388388 const freeScroll = this .scroll .freeScroll
389+ const hasHorizontalScroll = this .scroll .hasHorizontalScroll
390+ const hasVerticalScroll = this .scroll .hasVerticalScroll
391+
392+ if (! hasHorizontalScroll && ! hasVerticalScroll) {
393+ return true
394+ }
389395
390- let reachBoundary
391396 if (freeScroll) {
392397 return reachBoundaryX || reachBoundaryY
393398 }
394399
400+ let reachBoundary
395401 if (this .scroll .movingDirectionX ) {
396402 reachBoundary = reachBoundaryX
397403 } else if (this .scroll .movingDirectionY ) {
You can’t perform that action at this time.
0 commit comments