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

feat: LEAP-1896: Add scrollbar support to Visualizer #7165

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

Gondragos
Copy link
Collaborator

@Gondragos Gondragos commented Mar 4, 2025

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.
image

Improvements to scrolling functionality:

Enhancements to scroll handling logic:

Adjustments for improved user experience:

@github-actions github-actions bot added the feat label Mar 4, 2025
Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit c64b71d
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/67ca1c3cd955f40008260cb7

Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit c64b71d
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/67ca1c3c57e42c0008d1479e

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.
@Gondragos Gondragos force-pushed the fb-LEAP-1896/audio-scroll branch from 003d550 to 046fb9c Compare March 4, 2025 12:10
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.
@Gondragos Gondragos force-pushed the fb-LEAP-1896/audio-scroll branch from 162fe3a to f315f8b Compare March 4, 2025 16:17
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.
@Gondragos Gondragos requested a review from hlomzik March 5, 2025 08:19
@MihajloHoma
Copy link
Contributor

MihajloHoma commented Mar 6, 2025

/git merge

Workflow run
Successfully merged: 6 files changed, 86 insertions(+), 21 deletions(-)

@Gondragos
Copy link
Collaborator Author

Gondragos commented Mar 6, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 web/tsconfig.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants