Skip to content

Commit 5a8d36d

Browse files
Also add nowheel class
1 parent 5d5e3e8 commit 5a8d36d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This is a major release, and it might be not compatible with your current usage
2424
- `<CodeEditor />`:
2525
- Enter key handling (adding new line) broken when `onKeyDown` is defined.
2626
- `<Modal />`:
27-
- Add 'nopan' and 'nodrag' classes to Modal's overlay classes in order to always prevent react-flow to react to drag and pan actions in modals.
27+
- Add 'nopan', 'nowheel' and 'nodrag' classes to Modal's overlay classes in order to always prevent react-flow to react to drag and pan actions in modals.
2828

2929

3030
## [24.3.0] - 2025-06-05

src/cmem/react-flow/ReactFlow/ReactFlow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,5 +234,5 @@ export const ReactFlowExtended = React.forwardRef(ReactFlowExtendedPlain) as <T
234234
*/
235235
export const ReactFlow = ReactFlowExtended;
236236

237-
/** Classes that when set for an element, prevent that they trigger react-flow dragging and panning actions. */
238-
export const preventReactFlowActionsClasses = "nodrag nopan"
237+
/** Classes that when set for an element, prevent that they trigger react-flow dragging, wheel and panning actions. */
238+
export const preventReactFlowActionsClasses = "nodrag nopan nowheel"

0 commit comments

Comments
 (0)