-
Notifications
You must be signed in to change notification settings - Fork 30
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 and drop to open image #233
Conversation
Nice feature. This will improve the discoverability of the multiview option |
|
Really nice on Mac OS X FF. |
Conflicting PR. Removed from build iviewer-merge#953. See the console output for more details.
|
Unfortunately
Edit
Edit2
|
But, I have the same experience now on Mac -> D&D does not work - this was not the case - but something of this PR seems still to be there, as the pagination is still present - what is going on ? |
Apologies @pwalczysko I think that this PR might have been excluded because of a merge conflict yesterday (hopefully resolved now). |
So, after this PR is in the mix. Win 7
|
Interestingly, I have noticed on windwos, that in multi-view mode, you can interact (zoom, pan) with a window which is not active. The click into the window does not make the window active (which is highlighted by the color of the top bar of the window). Only the click on the bar itself is changing the color of the bar (darker blue for an active window). It seems like unexpected behaviour. Do we have a card for this @will-moore ? |
@pwalczysko The zoom on a non-active window has always been possible I think, but the click on the image should activate that viewer window. It's not Windows-specific (I see it on Mac + Chrome) and it's not from this PR. Probably a bug from the Openlayers update. I'll have a look when I get a chance. |
Sorry, I should have mentioned that this is not expected to work in IE: https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem#Browser_compatibility |
The fact that it does not work onIE will have to be clearly stated in the announcement and changelog |
Added it to the changelog in #238 |
Drag and drop a thumbnail onto centre panel to open image.
To test:
NB: Found some potential issues with current double-click behaviour (need to review in another PR):
If you have unsaved ROIs and you double-click or drag to open a different image to the one currently open, you will get a "Save ROIs" dialog etc. But, if you double-click or drag to open the same image that is currently open then you don't get a dialog until after the image has opened, so you have 2 viewers of the same image: the original one with unsaved ROIs and the new one with saved ROIs. This seems wrong to me, but the code and use-cases are quite convoluted so I don't want to start tackling that in this PR. Need to define supported workflows.