-
-
Notifications
You must be signed in to change notification settings - Fork 397
fix(widgets): fix paintWidget ignore keys alt, control and shift #2140
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
base: master
Are you sure you want to change the base?
Conversation
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.
LGTM overall. Just would like to remove a stray comment.
publicAPI.handleLeftButtonPress = (callData) => { | ||
if (!model.activeState || !model.activeState.getActive()) { | ||
// if (!model.activeState || !model.activeState.getActive()) { |
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 remove this comment.
Actually, the shape widget handles mouse moves differently depending on Why not having those |
In our application, we use those keys+mouse for camera handling. Zoom, Pan, Rotation |
Gotcha. |
@floryst ShapeWidget handles
(code not tested) |
Thanks for the update. @luaceseb please look to using modifier behaviors to implement your ignoreKey functionality. |
PR and Code Checklist
npm run reformat
to have correctly formatted codeContext
The paintWidget does not follow the guidelines of ignoring the alt, control and shift keys like the other widgets. Example DistanceWidget
Changes
Results
Testing