app/assets/javascripts/hooch.js in hooch-0.16.6 vs app/assets/javascripts/hooch.js in hooch-0.16.7

- old
+ new

@@ -266,13 +266,15 @@ this.$modal_content.hide() this.enableScroll() this.$modal_wrapper.trigger('modalClosed') }, disableScroll: function(){ - var modal = this - modal.old_height = $('body')[0].style.height - modal.old_overflow = $('body')[0].style.overflow - $('body').css({height: '100%',overflow: 'hidden'}) + if($(window).width() >= 640){ + var modal = this + modal.old_height = $('body')[0].style.height + modal.old_overflow = $('body')[0].style.overflow + $('body').css({height: '100%',overflow: 'hidden'}) + } }, enableScroll: function(){ $('body').css({height: this.old_height, overflow: this.old_overflow}) } }),