Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix iframe - mouse event while dragging #761

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sytolk
Copy link

@sytolk sytolk commented May 14, 2021

No description provided.

@Vadim-1507
Copy link

Vadim-1507 commented Dec 27, 2022

Hi! You can fix this problem with external library API,
example code:

.split_conteiner {
    position: relative
    ...
}
.mouse_blocker {
    width: 100%;
    height: 100%';
    position: absolute;
    z-index: 100;
    opacity: 0;
}

function SplitPaneBlock (props: SomeProps) {
    const [active, setActive] = React.useState<boolean>(false);
    const onStartHandler = () => { setActive(true); }
    const onFinishedHandler = () => { setActive(false); }

    return (
        <div className="split_conteiner"> 
            {active && (<div className="mouse_blocker"/>)}
            <SplitPane
                ...
                onDragStarted={onStartHandler}
                onDragFinished={onFinishedHandler}
            >
                ...
            </SplitPane>
        </div>
    )
}

It`s work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants