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

Quick brush resize using Ctrl+Click in sketch pane #898

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eliemichel
Copy link

This PR enables quick and intuitive resizing of the brush directly in the sketch pane using Control+click.

Known limitations:

  • Displayed cursor jumps at the end of resizing. We would need a way to move mouse from code to fix this properly. Is there a way to do so?

  • There is a quatum issue occuring sometime when starting, likely due to the saving of the toolbar state. This sets the app in an inconsistent state though we override the value of state.isQuickResizing in Toolbar's constructor. We need to discuss that.

  • It'd be nice to augment the gizmo with a little indicator of the mouse position while resizing the brush, but the code of SketchPane.createAlphaThresholdBorder() is still a bit obscure to us (and stuffed with some TODOs of yours). Should we move the cursor drawing into the strategy?

  • We should eventually make it resize the eraser when using right click.

@CLAassistant
Copy link

CLAassistant commented Nov 22, 2017

CLA assistant check
All committers have signed the CLA.

@audionerd audionerd self-assigned this Dec 11, 2017
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.

3 participants