Skip to content

Commit 6bae36a

Browse files
committed
Keep Firefox window from scrolling right when using the right arrow key in presentations.
1 parent a6b54d7 commit 6bae36a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

static/js/directives/presentation.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,16 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'],
740740
});
741741
});
742742

743+
$(document).on("keydown", function(event) {
744+
if (!$scope.layout.presentation) {
745+
return;
746+
}
747+
if ($(event.target).is("input,textarea,select")) {
748+
return;
749+
}
750+
event.preventDefault();
751+
});
752+
743753
$scope.$watch("layout.presentation", function(newval, oldval) {
744754
if (newval && !oldval) {
745755
$scope.showPresentation();

0 commit comments

Comments
 (0)