mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(launch_bar): horizontal launch bar scrolling with dropdown open
This commit is contained in:
parent
83838bbe76
commit
6e8f8ea357
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user