-
Notifications
You must be signed in to change notification settings - Fork 5
enable drag and drop on load file modal #651
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
Conversation
Coverage report
Test suite run success137 tests passing in 8 suites. Report generated by 🧪jest coverage report action from 73a2dd1 |
frasercl
left a comment
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 good!
Co-authored-by: Cameron Fraser <[email protected]>
Co-authored-by: Cameron Fraser <[email protected]>
meganrm
left a comment
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.
tested it, but I needed to update the viewer in order for this to run locally for me
… into feature/drop-on-modal
… into feature/drop-on-modal
… into feature/drop-on-modal
… into feature/drop-on-modal
Time estimate or Size
small
Problem
Advances #613
UX requested: Enable drag and drop when the “Choose a Simularium file to load” modal is shown
Solution
Use existing redux state to prevent pointer events on modal and wrap when file is dragged over, renders overlay and allows drop.
Bumped z-index of overlay to get it on top of the ant modal mask which is z-index of 1000.
Use a window event listener to close modal on drop (can't use wrap props when pointer events are disabled).
Updated modal styling:
