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

fix(card hover): fix instantly playing items when clicking in center on touch devices #623

Closed
wants to merge 1 commit into from

Conversation

camc314
Copy link
Contributor

@camc314 camc314 commented Jan 26, 2021

Previously, if you were to click on the center of a card on a touch device (mobile not supported) it
would instantly begin playback since you clicked where the "Play" icon would have been. This commit
sets display to none if hover is not supported

@codecov-io
Copy link

codecov-io commented Jan 26, 2021

Codecov Report

Merging #623 (56d9bfd) into master (0e6422c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #623   +/-   ##
=======================================
  Coverage   10.25%   10.25%           
=======================================
  Files         105      105           
  Lines        2916     2916           
  Branches      444      444           
=======================================
  Hits          299      299           
  Misses       2601     2601           
  Partials       16       16           
Impacted Files Coverage Δ
components/Item/Card.vue 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e6422c...56d9bfd. Read the comment docs.

…on touch devices

Previously, if you were to click on the center of a card on a touch device (mobile not supported) it
would instantly begin playback since you clicked where the "Play" icon would have been. This commit
sets display to none if hover is not supported
@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@heyhippari
Copy link
Contributor

This is fixed in a (imo) nicer way by #616, by removing the overlay entirely if we're on a mobile device.

@camc314
Copy link
Contributor Author

camc314 commented Jan 26, 2021

Ah I didn't see that.

@camc314 camc314 closed this Jan 26, 2021
@camc314 camc314 deleted the fix-hover branch January 26, 2021 10:16
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.

3 participants