Skip to content

Commit

Permalink
Merge pull request #789 from atom-minimap/remove-prevent-default
Browse files Browse the repository at this point in the history
fix: remove preventDefault from onMouseWheel for independent scroll
  • Loading branch information
UziTech authored Apr 2, 2021
2 parents c10e638 + 02527ff commit 8ce09e1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,6 @@ export default class Minimap {
const previousScrollTop = this.getScrollTop()
const updatedScrollTop = previousScrollTop - Math.round(wheelDeltaY * this.scrollSensitivity)

event.preventDefault()
this.setScrollTop(updatedScrollTop)
}
}
Expand Down

0 comments on commit 8ce09e1

Please sign in to comment.