Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

stop rotation when mouse pointer moves off the button

Mike McGann3e9d9b462d72
diff --git a/web/js/map/rotation.js b/web/js/map/rotation.js
index f06eabc01..ff4799683 100644
--- a/web/js/map/rotation.js
+++ b/web/js/map/rotation.js
@@ -88,6 +88,9 @@ export function MapRotate(ui, models, map) {
})
.mouseup(function () {
clearInterval(self.intervalId);
+ })
+ .mouseout(function() {
+ clearInterval(self.intervalId);
});
$rightButton.button({
@@ -101,6 +104,9 @@ export function MapRotate(ui, models, map) {
})
.mouseup(function () {
clearInterval(self.intervalId);
+ })
+ .mouseout(function() {
+ clearInterval(self.intervalId);
});
$resetButton.button({