feat: timeline selector onWheel

This commit is contained in:
DIYgod 2025-02-14 10:46:14 +08:00
parent 9fb0affd82
commit 29f48e3918
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ const TimelineSelector = ({ timelineId }: { timelineId: string | undefined }) =>
styles["mask-scroller"],
"flex h-11 justify-between gap-0.5 overflow-auto px-2 text-xl text-theme-vibrancyFg scrollbar-none",
)}
onWheel={(e) => {
e.preventDefault()
e.currentTarget.scrollLeft += e.deltaY
}}
>
{timelineList.views.map((timelineId) => (
<TimelineSwitchButton key={timelineId} timelineId={timelineId} />