disables page scroll when pressing spacebar #4204

Merged
cassidypignatello merged 5 commits from fix/3870-prevent-spacebar-from-scrolling-page into master 2020-05-25 19:36:18 +02:00
cassidypignatello commented 2020-05-17 13:37:16 +02:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #3870

What is the current behavior?

If playing a video and then navigating to a new page to cause the miniplayer to appear out of focus, pressing spacebar causes the video to pause and the page to scroll down in the background.

What is the new behavior?

Ensures that pressing spacebar only pauses the video on the miniplayer and doesn't cause the page to scroll.

Other information

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #3870 ## What is the current behavior? If playing a video and then navigating to a new page to cause the miniplayer to appear out of focus, pressing spacebar causes the video to pause and the page to scroll down in the background. ## What is the new behavior? Ensures that pressing spacebar only pauses the video on the miniplayer and doesn't cause the page to scroll. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
neb-b (Migrated from github.com) reviewed 2020-05-17 13:37:16 +02:00
neb-b (Migrated from github.com) requested changes 2020-05-18 22:53:47 +02:00
neb-b (Migrated from github.com) left a comment

Two small comments.

Two small comments.
neb-b (Migrated from github.com) commented 2020-05-18 22:53:40 +02:00

Can you move this up to the unreleased section?

Can you move this up to the unreleased section?
neb-b (Migrated from github.com) commented 2020-05-18 22:53:29 +02:00

The second argument to this effect should be [] so it isn't re-ran on every render

The second argument to this effect should be `[]` so it isn't re-ran on every render
cassidypignatello (Migrated from github.com) reviewed 2020-05-19 14:21:10 +02:00
cassidypignatello (Migrated from github.com) commented 2020-05-19 14:21:10 +02:00

This looks like it's already under the unreleased section, did you want me to move it from Fixed to Changed maybe?

This looks like it's already under the unreleased section, did you want me to move it from `Fixed` to `Changed` maybe?
cassidypignatello (Migrated from github.com) reviewed 2020-05-19 14:54:00 +02:00
cassidypignatello (Migrated from github.com) commented 2020-05-19 14:54:00 +02:00

Ahh good catch, thanks Sean! Updated

Ahh good catch, thanks Sean! Updated
cassidypignatello commented 2020-05-21 10:42:32 +02:00 (Migrated from github.com)

@seanyesmunt I just wanted to check in when you have a sec. I updated and pushed up the view.jsx file already, but didn't touch the CHANGELOG.md yet because it was already in the Unreleased section when I checked, but maybe I'm confused there. Let me know if you need any other changes, thanks!

@seanyesmunt I just wanted to check in when you have a sec. I updated and pushed up the `view.jsx` file already, but didn't touch the `CHANGELOG.md` yet because it was already in the Unreleased section when I checked, but maybe I'm confused there. Let me know if you need any other changes, thanks!
neb-b (Migrated from github.com) reviewed 2020-05-21 19:29:23 +02:00
neb-b (Migrated from github.com) commented 2020-05-21 19:29:22 +02:00

Sorry. I didn't realize it was already in the correct section.

Sorry. I didn't realize it was already in the correct section.
neb-b commented 2020-05-21 19:30:11 +02:00 (Migrated from github.com)

Nope. Sorry we've been pretty busy with paid content on lbry.tv. I'll give this another pass/merge later tonight or tomorrow morning.

Nope. Sorry we've been pretty busy with paid content on lbry.tv. I'll give this another pass/merge later tonight or tomorrow morning.
cassidypignatello commented 2020-05-22 08:27:21 +02:00 (Migrated from github.com)

Sounds good, no rush!

Sounds good, no rush!
neb-b commented 2020-05-25 16:17:28 +02:00 (Migrated from github.com)

@cassidypignatello Can you please rebase this? It looks like it includes a lot of changes that have already been merged to master.

@cassidypignatello Can you please rebase this? It looks like it includes a lot of changes that have already been merged to master.
cassidypignatello commented 2020-05-25 18:23:00 +02:00 (Migrated from github.com)

@seanyesmunt No problem, I just rebased this. Let me know if you need anything else!

@seanyesmunt No problem, I just rebased this. Let me know if you need anything else!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#4204
No description provided.