-
Notifications
You must be signed in to change notification settings - Fork 295
fix: optimize scroll position observer after video fullscreen exit #1405
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: optimize scroll position observer after video fullscreen exit #1405
Conversation
|
Thanks for the pull request, @ihor-romaniuk! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## open-release/redwood.master #1405 +/- ##
==============================================================
Coverage ? 88.79%
==============================================================
Files ? 304
Lines ? 5249
Branches ? 1336
==============================================================
Hits ? 4661
Misses ? 572
Partials ? 16 ☔ View full report in Codecov by Sentry. |
|
@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
* feat: [FC-0056] courseware sidebar enhancement (openedx#1398) - Display section and sequence progress - Add tracking event to the unit button - Hide the horizontal unit navigation with enabled sidebar navigation * fix: optimize scroll position observer after video fullscreen exit (openedx#1405) * feat!: organize plugin slots as components, add footer slot (openedx#1408) BREAKING CHANGE: slot ids have been changed for consistency * `sequence_container_plugin` -> `sequence_container_slot` * `unit_title_plugin` -> `unit_title_slot` Co-authored-by: Brian Smith <[email protected]> * feat(redwood): add css support and cdn compatibility (#17) * perf: add runtime theming support to redwood * fix: outline collapsible icons * fix: solve issue with overlaid input element * refactor: add frontend-platform dep from npm * refactor: rename frontend-build github branch --------- Co-authored-by: Diana Catalina Olarte <[email protected]> * fix: some variables weren't css-variables * fix: recreate package-lock --------- Co-authored-by: Ihor Romaniuk <[email protected]> Co-authored-by: Adolfo R. Brandes <[email protected]> Co-authored-by: Brian Smith <[email protected]> Co-authored-by: Diana Catalina Olarte <[email protected]>
This merge request contains an optimization for toggling video xblock full-screen mode and saving the previous window top offset position on exit from the full-screen state.
With this refactor, we call
scrollafter exit full-screen mode only and not depends on xblock resize because sometimes the resize event comes before exiting full screen mode, and we don't need to call scroll every time on resize.Related PR to quince branch: #1370
Related PR to master branch: #1371