Skip to content

Conversation

@nick-skriabin
Copy link
Member

@nick-skriabin nick-skriabin commented Jun 26, 2025

Just moving the functionality under a feature flag.

Reason: buggy behavior.

@netlify
Copy link

netlify bot commented Jun 26, 2025

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

Name Link
🔨 Latest commit fe7bbef
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/685dd73a21955c0008412f56

@netlify
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit fe7bbef
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/685dd73ab4c12b0008ebbdd8

@netlify
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit fe7bbef
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/685dd73a21955c0008412f5a
😎 Deploy Preview https://deploy-preview-7852--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 project configuration.

@github-actions github-actions bot added the chore label Jun 26, 2025
@netlify
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit fe7bbef
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/685dd73a4d787b00085e240d
😎 Deploy Preview https://deploy-preview-7852--label-studio-playground.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 project configuration.

@nick-skriabin nick-skriabin changed the title chore: BROS-87: Hide pinch to zoom functionality under a feature flag fix: BROS-87: Introduce unified zoom behavior for trackpads and mice Jun 26, 2025
@github-actions github-actions bot added the fix label Jun 26, 2025
@nick-skriabin nick-skriabin requested review from bmartel and nass600 June 26, 2025 17:11
@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jun 26, 2025

/fmt

Workflow run

Copy link
Contributor

@yyassi-heartex yyassi-heartex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion but other wise looks good


// Limit the maximum zoom change per event to prevent aggressive zooming
// This prevents users from accidentally zooming too far with a single wheel event
const limitedZoomChange = Math.max(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to use clamp() here because you don't limit minimum value

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically you just need to run it two times, with ±MAX_CHANGE and with MIN/MAX

Copy link
Collaborator

@hlomzik hlomzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one important change regarding the goal of the PR, and the rest is good

@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jun 26, 2025

/fmt

Workflow run

@robot-ci-heartex robot-ci-heartex merged commit 793f4af into develop Jun 27, 2025
44 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-87/expand-ff-reach branch June 27, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants