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

範囲外でクリックし始めた・し終えたときの挙動 #18

Open
okathira opened this issue Mar 2, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@okathira
Copy link
Owner

okathira commented Mar 2, 2021

onMouseDown={() => {
setMouseDownPos(
getRelativePointerPosition(inputAreaRef) ?? { x: 0, y: 0 }
);
setDragging(true);
}}
onMouseUp={() => {
addBoxProps();
setDragging(false);
}}

範囲外でクリックし始めて範囲内でクリックし終えたときと、
範囲外でクリックし終えて範囲内でクリックし始めたときの
挙動を直す。

@okathira okathira added the bug Something isn't working label Mar 2, 2021
@okathira
Copy link
Owner Author

okathira commented Mar 2, 2021

範囲内でクリックを開始して終了したときのみ動作させたい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant