Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed space bar play event in firefox

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