Skip to content

Commit

Permalink
fixed a check in transitionListener handler ...
Browse files Browse the repository at this point in the history
that was causing extra transition effects when interacting with other elements with transition styles in a slide.
oliviertassinari#656
  • Loading branch information
m-shojaei authored Jan 5, 2022
1 parent 241a723 commit 2ccb2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-swipeable-views/src/SwipeableViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class SwipeableViews extends React.Component {
componentDidMount() {
// Subscribe to transition end events.
this.transitionListener = addEventListener(this.containerNode, 'transitionend', event => {
if (event.target !== this.containerNode) {
if (event.target !== this.rootNode) {
return;
}

Expand Down

0 comments on commit 2ccb2b7

Please sign in to comment.