-
Notifications
You must be signed in to change notification settings - Fork 524
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
Change cursor when allowResize and allowDrag are false #1124
Conversation
@erick2014 thanks for helping out! There are a couple issues with this, though. I'm including a gif to illustrate what I'm talking about:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address PR comments
|
||
if (!props.allowResize && props.allowDrag) { | ||
xProps = assign(xProps, { cursor: "move" }); | ||
yProps = assign(yProps, { cursor: "auto" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these both be "move" ?
@boygirl thx for your help, check it now |
}; | ||
if (!props.allowResize && props.allowDrag) { | ||
cursors.xProps = "move"; | ||
cursors.yProps = "auto"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think these should both be "move". If you disagree can you explain why not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I agree, because if you can't resize, but you can drag, makes sense
🎉 Merging now! |
This fixes VictoryBrushContainer should not show "rezise-cursor" when allowResize property is false, #1095