-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Drag drop layers to rearrange #64
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.
Looks great, thank you Nick!
Only comment I have is that I think it would seem more intuitive to have the divider appear when you're moving the layer back into its original place. i.e. I select a layer and try to move it around, currently a divider only appears before or after another layer if that space is not already adjacent to the selected layer.
@kne42 - thanks! On the dividers appearing when moving the layer back. We could just have the closest divider always highlighted, not sure how everyone else feels. It's an easy change to make. We can also revisit in a future PR after we spend some time playing around with it. Maybe next time at biohub you show me exactly the behaviour you mean and I'll have a better understanding of it. |
Hello @sofroniewn! Thanks for updating the PR.
|
@sofroniewn Yeah that sounds reasonable. I will be at the Redwood City CZI office on Monday for a few hours though if you'd have time to chat :) |
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.
Thank you @sofroniewn !
What does this PR do? Why are doing this? References?
This PR adds support for dragging and dropping layer widgets to rearrange them. Rearranging them changes the order of display of the images in the canvas. Multiple widgets can be simultaneously selected and rearranged at the same time. During dragging the layer name appears by the cursor.
Type of change
How Has This Been Tested?
Final Checklist: