Browse Source

fix(25-02): use onWheelCapture for capture phase

- React Flow may listen during capture phase
- onWheelCapture intercepts before bubbling phase
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
024f3a9c0f
  1. 2
      src/components/quickstart/WelcomeModal.tsx

2
src/components/quickstart/WelcomeModal.tsx

@ -77,7 +77,7 @@ export function WelcomeModal({
return ( return (
<div <div
className="fixed inset-0 z-[100] flex items-center justify-center bg-black/50 backdrop-blur-sm" className="fixed inset-0 z-[100] flex items-center justify-center bg-black/50 backdrop-blur-sm"
onWheel={(e) => e.stopPropagation()} onWheelCapture={(e) => e.stopPropagation()}
> >
<div className="w-full max-w-4xl mx-4 bg-neutral-800 rounded-xl border border-neutral-700 shadow-2xl overflow-clip max-h-[80vh] flex flex-col"> <div className="w-full max-w-4xl mx-4 bg-neutral-800 rounded-xl border border-neutral-700 shadow-2xl overflow-clip max-h-[80vh] flex flex-col">
{currentView === "initial" && ( {currentView === "initial" && (

Loading…
Cancel
Save