-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
WIP: Canvas Scroll, Pan & Other Item handling improvements #219
Conversation
I discourage to mix whitespace corrections and method reorder when adding functionality. There's lot of movement this days, and that just make merges hard. You can always fix those things but please do in separate commits, so we can see what you're really adding or fixing |
Hi @albfan, thanks for the response! I've seeen that there's a lot of movement these days, I'm very happy about it. I can get your point, but I think that my little reorder is simple enough not to break things. I already merged it in my repo from current master and it has not been that hard to fix the conflicts. Nevertheless, I'll be marking each edit accordingly and I'll put those changes in different commits. |
Yes is just a general advice. surely we can deal with this changes. Thanks for working on this! |
Thanks for working on this, I'll review it later and see how it behaves. |
Hi @Alecaddd, thanks for your answer, as well. I implemented the space pan behaviour and the constrained rotation with CTRL, but now I think it's wiser to stop here and maybe open another PR for the other things (like centered resize and aspect ratio contrained resize, since those actions haven't been discussed yet, too), in order to avoid unneeded conflicts during merge. I expect the zoom with I would like to work on something else for the 1.0 Milestone, maybe the Artwork/multiple select topic might be more suitable in order to minimize conflicts? |
Indeed, that's exactly what I was going to suggest. I have some edits to suggest, so stay tuned :D |
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.
Just a few small changes
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.
A couple of more edits, please.
- Also, when the Spacebar is pressed and hold, the hover effect on an object shouldn't happen as it gives a false feedback to the user. Add that exception.
- Another thing is that we should keep our code consistent in the way we do things. Whenever there's a canvas action that changes the default behaviour, we update the
enum EditMode
. Instead here you're using thepan_mode_enabled
, which breaks the consistency. Let's update that to follow our approach.
…or loading system to accomodate for grad and grabbing icons
…user start grabbing inside item
What is happening? |
Hey @giacomoalbe, sorry for the delay in reviewing this. Upon testing it the scrolling and panning don't work as expected. |
I guess this can be closed, right @giacomoalbe? |
Summary / How this PR fixes the problem?
With this PR I'd like to implement some Canvas actions and movements and to improve the usability of the Canvas tools (move, resize, rotate, etc) as stated in #212, #217 and #206.
Here's the list of desidered/already done implementations:
I know @Alecaddd is working on this too, but those particular actions were missing from his PR, so I thought about implementing them.
If you think with PR is too broad, I can simply split in two or even more, or if you think there's should be more urgent work to do on other topics, please let me know and I'll be working on that instead.