From 2e453f74e8304f6404138fe550129a45ef6810b6 Mon Sep 17 00:00:00 2001 From: Git-Lior Date: Wed, 13 Feb 2019 18:12:42 +0200 Subject: [PATCH] bug fix: scrolling on CommitList scrolls the page as well --- src/history.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/history.js b/src/history.js index 0987bc4..6bc86ef 100644 --- a/src/history.js +++ b/src/history.js @@ -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 (