From 5cd66b593fc49290dca1f3cf0a486b0506022a49 Mon Sep 17 00:00:00 2001 From: Dong Qian Date: Wed, 1 Apr 2020 10:31:54 -0400 Subject: [PATCH] add mouse wheel scroll into tabBar --- src/shared/TabBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/TabBar.js b/src/shared/TabBar.js index 1f7b50b5..92d6bc7d 100644 --- a/src/shared/TabBar.js +++ b/src/shared/TabBar.js @@ -16,6 +16,8 @@ const TabBar = ({ tabs, currentTab, setCurrentTab }) => { } }; + const wheelScrollBy = e => scrollBy(e.deltaY); + return (
{ chevron_left
-