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

spacebar doesnt work flawless with handlers #3870

Open
8bitbunny opened this issue Mar 21, 2020 · 6 comments
Open

spacebar doesnt work flawless with handlers #3870

8bitbunny opened this issue Mar 21, 2020 · 6 comments
Labels
area: viewer help wanted type: bug Existing functionality is wrong or broken

Comments

@8bitbunny
Copy link

Bug
when i press on the spacebar on my keyboard with the miniplayer playing a video, 2 things happen: the page scrolls down, and the video pauses playing in miniview.

To Reproduce
as explained above

Expected behavior
expected behaviour to me would naturally be in this case: spacebar press to only pause/resume and not scroll the page. maybe use the page up/down keys for that specific?

System Configuration

  • LBRY Daemon version: 0.63.0
  • LBRY App version: 0.43.4
  • LBRY Installation ID: not needed for this(?)
  • Operating system: 64bit based Ubuntu 19.10 Linux. (KDE desktop environment)

Additional context
love LBRY alot! just wish i could help fixing the issues i come across :)

@8bitbunny 8bitbunny added the type: bug Existing functionality is wrong or broken label Mar 21, 2020
@tzarebczan
Copy link
Contributor

Thanks for filing this issue, I can confirm it's happening. Can we show you some appreciation for the report?

@8bitbunny
Copy link
Author

sure thing,
i will send an email from my domain i linked my lbry profile to.
which is not my github email, but it will be coming from 8bit-bun.nl
ramon :)

@harshkhandeparkar
Copy link
Contributor

Is this browser specific? Didn't happen to me on Firefox.

@harshkhandeparkar
Copy link
Contributor

I couldn't reproduce it on any browser or even the app. 😕

@cassidypignatello
Copy link
Contributor

I've been able to reproduce this in both the app and on Chrome. It's my understanding that the default spacebar behavior in most browsers is to scroll down when the miniplayer isn't in focus. However, as soon as the miniplayer is brought back into focus it only pauses the video.

I think the best way to handle this would be to add an event listener that would disable the default behavior if a user presses spacebar. I'm not sure if there's any situation where you would want to keep this default behavior in place, so just thought I'd mention it just in case. Either way, I can start working on this within the next couple days.

@DispatchCommit
Copy link
Contributor

Disabling spacebar seems like an overzealous solution. The player should just consume the spacebar input and stop the event from bubbling up so only 1 of the two actions occurs.

The solution in #4204 led to #4162 being opened, and goes against the standard behavior for the spacebar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: viewer help wanted type: bug Existing functionality is wrong or broken
Projects
None yet
Development

No branches or pull requests

5 participants