Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed firefox keycode play-bug #WV-1753

Benjamina195eb165a28
diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.js
index 78eb1ec71..640f7aabc 100644
--- a/web/js/animation/wv.anim.widget.js
+++ b/web/js/animation/wv.anim.widget.js
@@ -87,8 +87,7 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {
});
// Space bar event listener
$(window).keypress(function(e) {
- if ((e.keyCode === 0 || // space click mozilla
- e.keyCode === 32) && // space click
+ if (e.keyCode === 32 && // space click
!$( "#layer-modal" ).dialog( "isOpen" )) {//layer selector is not open
e.preventDefault();
self.onSpaceBar();