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

Allow browser-based context-click to download Imagery #3857

Merged
merged 2 commits into from
May 18, 2021

Conversation

charlesh88
Copy link
Contributor

Simple fix to allow browser context-clicking to download imagery. Fixes #3756.

  • pointer-events: none added to c-compass wrapper (which was blocking the image from catching mouse events), and pointer-events: all added to c-direction-rose element;
  • Unit tested locally in main view and both types of layouts;
  • Fixed indention spacing in file;

- `pointer-events: none` added to `c-compass` wrapper (which was
blocking the image from catching mouse events), and
`pointer-events: all` added to `c-direction-rose` element;
- Unit tested locally in main view and both types of layouts;
- Fixed indention spacing in file;
@shefalijoshi
Copy link
Contributor

@charlesh88 It looks like the previous and next buttons also prevent the context save menus for images:
image

Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compass fix looks good!

However, the previous and next buttons seem to prevent the image menu items as well.

@charlesh88
Copy link
Contributor Author

Compass fix looks good!

However, the previous and next buttons seem to prevent the image menu items as well.

@shefalijoshi Yes, any clickable controls are going to prevent the browser-based menu from displaying - this is normal and can't be solved with this approach. A more long term solution would be to add an explicit Save action, available in the view's 3 dot menu - but let's get this in first.

@charlesh88
Copy link
Contributor Author

@shefalijoshi Conflicts resolved, this PR should be good to go.

@shefalijoshi
Copy link
Contributor

Reviewer Checklist

  1. Changes appear to address issue? Y
  2. Appropriate unit tests included? N/A
  3. Code style and in-line documentation are appropriate? Y
  4. Commit messages meet standards? Y
  5. Has associated issue been labelled unverified? (only applicable if this PR closes the issue) Y
  6. Has associated issue been labelled bug? (only applicable if this issue is a bug) Y

@shefalijoshi shefalijoshi self-requested a review May 18, 2021 21:41
Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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.

[Imagery] Images cannot be saved
2 participants