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

[Bug] Hover effect on tiles gets stuck #43

Open
BenShelton opened this issue Jun 2, 2021 · 0 comments
Open

[Bug] Hover effect on tiles gets stuck #43

BenShelton opened this issue Jun 2, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@BenShelton
Copy link
Owner

Packages & versions

Media 0.7.0

Describe the bug

On the Control Panel when viewing media for a publication, in some cases you can have multiple image/video tiles displaying the hover effect.

Reproduction steps

  1. Go to Publication
  2. Move cursor rapidly over the window

Expected behavior

Only 1 can ever have the hover effect. Ideally when the cursor leaves the window all disappear.

Additional context

I think we can achieve this by adding the mouse position handlers to the window or page, rather than each individual item, and then passing the positions down to each tile. Then the components themselves can check if they are within those coordinates.

@BenShelton BenShelton added bug Something isn't working good first issue Good for newcomers labels Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant