Skip to content

Commit

Permalink
adding comment explaining dimension check rationale
Browse files Browse the repository at this point in the history
  • Loading branch information
treyp committed Jan 29, 2016
1 parent f8b50e3 commit 0b221e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data/AutoScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ chrome.storage.local.get(defaults, function (options) {
} else {
if (((e.button === 1 && options["middleClick"]) ||
(e.button === 0 && (e.ctrlKey || e.metaKey) && options["ctrlClick"])) &&
// Make sure the click is not on a scrollbar
// TODO what about using middle click on the scrollbar of a non-<html> element ?
e.clientX < htmlNode.clientWidth &&
e.clientY < htmlNode.clientHeight &&
Expand Down

0 comments on commit 0b221e7

Please sign in to comment.