mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 21:59:55 +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,
|
flexGrow: 1,
|
||||||
flexDirection: isHorizontalLayout ? "row" : "column"
|
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={{
|
<LaunchBarContext.Provider value={{
|
||||||
isHorizontalLayout
|
isHorizontalLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user