mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 21:29:56 +01:00
fix(launch_bar): horizontal launch bar scrolling with dropdown open
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user