fix: isolate Neovim panel scrolling
This commit is contained in:
+11
-1
@@ -1267,7 +1267,17 @@ function NeovimPanel({
|
||||
event.altKey ? "A" : "",
|
||||
].filter(Boolean).join("-");
|
||||
return (
|
||||
<section className="nvim-panel" aria-label="Neovim połączony z kontenerem">
|
||||
<section
|
||||
className="nvim-panel"
|
||||
aria-label="Neovim połączony z kontenerem"
|
||||
onWheel={event => {
|
||||
event.stopPropagation();
|
||||
const target = event.target;
|
||||
if (!(target instanceof Element) || !target.closest(".nvim-screen-scroll")) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div
|
||||
ref={screenRef}
|
||||
className="nvim-screen-scroll"
|
||||
|
||||
Reference in New Issue
Block a user