Fixes the play/pause on drag issue with the floating player. (#221) (#7339)

I tried to use event.preventDefault on the click handler but that didn't
work. So instead I'm using css 'pointer-events: none' to disable click
events on the player while the player is being dragged.

https://github.com/OdyseeTeam/odysee-frontend/issues/206

Co-authored-by: maxime peabody <maximepeabody@gmail.com>
This commit is contained in:
jessopb 2021-12-10 13:08:15 -05:00 committed by GitHub
parent 474782eeb0
commit 13a9f5035d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,10 @@
top: var(--spacing-s); top: var(--spacing-s);
} }
.content__viewer--disable-click {
pointer-events: none;
}
.content__viewer--inline { .content__viewer--inline {
max-height: var(--inline-player-max-height); max-height: var(--inline-player-max-height);
border: none; border: none;