-
8000
-
Notifications
You must be signed in to change notification settings - Fork 50
fix: Scroll issues in rundowns #1420
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
base: release53
Are you sure you want to change the base?
fix: Scroll issues in rundowns #1420
Conversation
…tance was called fix, use timeout and measure scroll to position
… no longer called 10 times on a take
…as just a 5sec delay to adjust the virtualElement. Instead there's a state in viewPort telling if it's scrolling
…it shouldn't happen at all)
…(fix if more than 1 segment is invalid)
…and useLayoutEffect. When using the 'contain: 'size layout' option, a static placeholder is fine Chrome
…ter the on air button is clicked
…utoscroll-detaches-onair-line
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release53 #1420 +/- ##
=============================================
- Coverage 56.87% 56.85% -0.02%
=============================================
Files 404 404
Lines 73147 73222 +75
Branches 4041 4457 +416
=============================================
+ Hits 41603 41634 +31
- Misses 31410 31447 +37
- Partials 134 141 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing this locally, I see some issues with the new implementation of VirtualElement
and it measuring the elements. Specifically, hidden Segments (isHidden
) seem to be throwing it off.
I think there's also some issue with Segment placeholders and their margins (note the red line - the position of a regular Segment and the Placeholder don't align):
About the Contributor
This PR is made on behalf of BBC
Type of Contribution
This is a bug fix + refactor
Current Behavior
New Behavior
Testing
Affected areas
This affects rundown view, and as it's a refactor, there can be unknown edge cases.
It has been tested with rundowns from BBC and NRK
Time Frame
This should be merged prior to the planned refactoring of the rundown view.
Status