Skip to content

fix: LEAP-1442: Fix unexpected scrolling on region select in Video #7392

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

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

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Apr 17, 2025

When user clicks on region label in Video timeline (left sidepanel of it), the video timeline scrolls to the left.
That happens because click is treated as still a click on timeline but with negative offset outside of scrollable area, so it jumps to previous window.

Also scroll to the first frame of the region on select. That worked for VideoRectangle, so here is the same code for TimelineRegion. @todo is the same, because it's out of the current scope.

hlomzik added 2 commits April 17, 2025 09:50
When user clicks on region label in Video timeline (left sidepanel of it),
the video timeline scrolls to the left.
That happens because click is treated as still a click on timeline but with
negative offset outside of scrollable area, so it jumps to previous window.
Let's try to scroll to the first frame of the region on select.
@github-actions github-actions bot added the fix label Apr 17, 2025
Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit a9284ed
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-storybook/deploys/680648d2d0758b0009e80717
😎 Deploy Preview https://deploy-preview-7392--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit a9284ed
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/680648d26e9d2e0008c8c5cd
😎 Deploy Preview https://deploy-preview-7392--label-studio-docs-new-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit a9284ed
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/680648d221f5c60008fd2b48
😎 Deploy Preview https://deploy-preview-7392--heartex-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hlomzik
Copy link
Collaborator Author

hlomzik commented Apr 17, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/utils/utils.ts

@hlomzik hlomzik requested review from bmartel and Gondragos April 21, 2025 13:36
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.

2 participants