Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-2219 (#3844)

Jason Kent685708873d6f
diff --git a/web/js/map/compare/swipe.js b/web/js/map/compare/swipe.js
index 6cabed797..14891bccd 100644
--- a/web/js/map/compare/swipe.js
+++ b/web/js/map/compare/swipe.js
@@ -31,7 +31,8 @@ export default class Swipe {
this.create(store);
window.addEventListener('resize', () => {
if (document.querySelector('.ab-swipe-line')) {
- this.update(store);
+ this.destroy();
+ this.create(store);
}
});
}