fix(launch_bar): horizontal launch bar scrolling with dropdown open

This commit is contained in:
Elian Doran 2025-12-05 15:53:17 +02:00
parent 83838bbe76
commit 6e8f8ea357
No known key found for this signature in database

View File

@ -24,7 +24,10 @@ export default function LauncherContainer({ isHorizontalLayout }: { isHorizontal
flexGrow: 1,
flexDirection: isHorizontalLayout ? "row" : "column"
}}
onWheel={isHorizontalLayout ? onWheelHorizontalScroll : undefined}
onWheel={isHorizontalLayout ? (e) => {
if ((e.target as HTMLElement).closest(".dropdown-menu")) return;
onWheelHorizontalScroll(e);
} : undefined}
>
<LaunchBarContext.Provider value={{
isHorizontalLayout