Skip to content

Commit 936b492

Browse files
SW-7770 Highlights scrolling scrolls through two highlights at a time (#4818)
1 parent 8f628a9 commit 936b492

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/ActivityLog/ActivityHighlightsView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,12 @@ const ActivityHighlightsView = ({ activities, projectId, selectedQuarter }: Acti
423423
key={activities.map((a) => a.payload.id).join('-')}
424424
loop
425425
modules={[Mousewheel, Navigation, Pagination]}
426-
mousewheel
426+
mousewheel={{
427+
forceToAxis: true,
428+
releaseOnEdges: true,
429+
thresholdDelta: 10,
430+
thresholdTime: 500,
431+
}}
427432
onSlideChange={onSlideChange}
428433
onSwiper={setSwiper}
429434
pagination={{ clickable: true }}

0 commit comments

Comments
 (0)