Skip to content

Commit

Permalink
Merge pull request pomber#85 from Git-Lior/scroll-fix
Browse files Browse the repository at this point in the history
bug fix: scrolling on CommitList scrolls the page as well
  • Loading branch information
pomber authored Feb 13, 2019
2 parents 15cea1e + 2e453f7 commit c4cd1f1
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 c4cd1f1

Please sign in to comment.