mirror of
https://github.com/pomber/git-history.git
synced 2024-09-11 14:35:57 +03:00
Merge pull request #85 from Git-Lior/scroll-fix
bug fix: scrolling on CommitList scrolls the page as well
This commit is contained in:
commit
c4cd1f198e
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user