mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Avoid transition end event trigger multiple times
This commit is contained in:
committed by
Lachlan Kermode
parent
34c18a6102
commit
0df32f6a4d
@@ -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
|
||||
|
||||
@@ -71,7 +71,7 @@ class Timeline extends React.Component {
|
||||
let element = document.querySelector('.timeline-wrapper');
|
||||
element.addEventListener("transitionend", (event) => {
|
||||
this.computeDims();
|
||||
}, false);
|
||||
}, { once: true });
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user