Skip to content

Commit

Permalink
bug fix: scrolling on CommitList scrolls the page as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Lior authored and Git-Lior committed Feb 13, 2019
1 parent 2d53e7b commit 2e453f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function CommitInfo({ commit, move, onClick }) {

function CommitList({ commits, currentIndex, selectCommit }) {
const mouseWheelEvent = e => {
e.preventDefault();
selectCommit(currentIndex + (e.deltaX + e.deltaY) / 100);
};
return (
Expand Down

0 comments on commit 2e453f7

Please sign in to comment.