We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a12dd90 commit db330b9Copy full SHA for db330b9
packages/react-swipeable-views/src/SwipeableViews.js
@@ -364,7 +364,7 @@ class SwipeableViews extends React.Component {
364
365
const touch = applyRotationMatrix(event.touches[0], axis);
366
367
- this.viewLength = this.rootNode.getBoundingClientRect()[axisProperties.length[axis]];
+ this.viewLength = this.containerNode.getBoundingClientRect()[axisProperties.length[axis]];
368
this.startX = touch.pageX;
369
this.lastX = touch.pageX;
370
this.vx = 0;
0 commit comments