8000 Feature Request: Add support to prevent resizing on right-click in onResizeStart handler · Issue #972 · bokuweb/react-rnd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature Request: Add support to prevent resizing on right-click in onResizeStart handler #972
Open
@martinboksa

Description

@martinboksa

I'm using react-rnd and have encountered an issue with resizing when using right-click. I have a component that uses a handle both for a right-click context menu and for resizing. Currently, when I right-click on a resize handle, it triggers both the context menu and the resize operation simultaneously, causing conflicts in the UI behavior.

I would like to be able to prevent resizing when the right mouse button is used, similar to how the underlying re-resizable library works. In re-resizable, returning ⁠false from the ⁠onResizeStart callback prevents the resize operation from starting.

https://www.loom.com/share/0afa8955d4314f54b56e483d7a4fb56c

Or maybe any workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0