Skip to content

Commit

Permalink
gnab#111: Don't propagate mouse wheel event when scrolling presenter …
Browse files Browse the repository at this point in the history
…notes.
  • Loading branch information
gnab committed May 19, 2014
1 parent d32bfce commit a6f6ca2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/remark/views/slideshowView.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ SlideshowView.prototype.configureChildElements = function () {
self.notesElement = self.notesArea.getElementsByClassName('remark-notes')[0];
self.toolbarElement = self.notesArea.getElementsByClassName('remark-toolbar')[0];

self.notesElement.addEventListener('mousewheel', function (event) {
event.stopPropagation();
});

var commands = {
increase: function () {
self.notesElement.style.fontSize = (parseFloat(self.notesElement.style.fontSize) || 1) + 0.1 + 'em';
Expand Down

0 comments on commit a6f6ca2

Please sign in to comment.