-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: LEAP-1896: Add scrollbar support to Visualizer #7165
Open
Gondragos
wants to merge
10
commits into
develop
Choose a base branch
from
fb-LEAP-1896/audio-scroll
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+87
−6
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
Introduced a scroll filler element to improve handling of browser scroll size inconsistencies in the Visualizer. Updated relevant methods and styles to adjust layout dynamically based on the calculated scroll size. Added safeguards to mouse events.
003d550
to
046fb9c
Compare
hlomzik
reviewed
Mar 4, 2025
Renamed `BROWSER_SCROLL_SIZE` to `BROWSER_SCROLLBAR_WIDTH` to provide a clearer description of its purpose. Updated related references and comments to reflect this change, ensuring consistency and maintaining accurate documentation.
162fe3a
to
f315f8b
Compare
Refactored scrollbar logic into a new `initScrollBar` method for better clarity and functionality. Added `scrollbarGutter: stable` for potential consistent scrollbar behavior across browsers.
Updated pixel color comparison coordinates in audio region tests to ensure accuracy and consistency. Added a getter to check the readiness of objects in the model and updated `isReady` logic in test helpers for smoother synchronization.
Added a short wait after verifying the loading bar's absence to ensure the AudioView has completely rendered. This change addresses potential flakiness in tests caused by premature assertions.
hlomzik
reviewed
Mar 5, 2025
hlomzik
approved these changes
Mar 5, 2025
bmartel
approved these changes
Mar 5, 2025
/git merge
|
It looks like it was not the problem for tests.
/git merge develop
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduced a scroll filler element to improve handling of browser scroll size inconsistencies in the Visualizer. Updated relevant methods and styles to adjust the layout dynamically based on the calculated scroll size. Added safeguards to mouse events.

Improvements to scrolling functionality:
web/libs/editor/src/lib/AudioUltra/Common/Utils.ts
: Added a new constantBROWSER_SCROLL_SIZE
to dynamically calculate the browser scroll size.web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: ImportedBROWSER_SCROLL_SIZE
and added a newscrollFiller
element to handle scroll space dynamically. [1] [2]Enhancements to scroll handling logic:
web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: Updated thesetScrollLeft
method to adjust the wrapper's scroll position and introduced a new_setScrollLeft
method for internal scroll handling.web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: Modified thecenterToCurrentTime
method to use the updatedsetScrollLeft
method for centering.web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: Added an event listener for thescroll
event to update the scroll position and invoke the waveform scroll event.Adjustments for improved user experience:
web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: Adjusted the container height to include the browser scroll size, ensuring proper layout and spacing.web/libs/editor/src/lib/AudioUltra/Visual/Visualizer.ts
: Updated theupdateSize
method to refresh the scroll filler and set the scroll position correctly.);