Avoid transition end event trigger multiple times

This commit is contained in:
Franc Camps-Febrer
2019-01-09 17:09:53 +01:00
committed by Lachlan Kermode
parent 34c18a6102
commit 0df32f6a4d
2 changed files with 2 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ function mapStateToProps(state) {
selected: state.app.selected,
highlighted: state.app.highlighted,
mapAnchor: state.app.mapAnchor,
mapBounds: state.app.filters.mapBounds
mapBounds: state.app.filters.mapBounds,
narrative: state.app.narrative,
flags: {
isShowingSites: state.app.flags.isShowingSites

View File

@@ -71,7 +71,7 @@ class Timeline extends React.Component {
let element = document.querySelector('.timeline-wrapper');
element.addEventListener("transitionend", (event) => {
this.computeDims();
}, false);
}, { once: true });
}