From 2ccb2b7f6b97809ed6c17a2ca9bfe693abee0d8f Mon Sep 17 00:00:00 2001 From: Nader Date: Wed, 5 Jan 2022 21:10:00 +0100 Subject: [PATCH] fixed a check in transitionListener handler ... that was causing extra transition effects when interacting with other elements with transition styles in a slide. https://github.com/oliviertassinari/react-swipeable-views/issues/656 --- packages/react-swipeable-views/src/SwipeableViews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-swipeable-views/src/SwipeableViews.js b/packages/react-swipeable-views/src/SwipeableViews.js index 0647853d..52ad69f6 100644 --- a/packages/react-swipeable-views/src/SwipeableViews.js +++ b/packages/react-swipeable-views/src/SwipeableViews.js @@ -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; }