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

Fix zoom out of chart with cursor outside chart container #2893

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

crcarlo
Copy link
Contributor

@crcarlo crcarlo commented Sep 5, 2024

Description

Fixes #2761

Type of Change

Bug fix

How Has This Been Tested?

Verified manually and added unit tests with previously failing example ("should't change the domain when zooming out with max zoom out with the cursor outside the container boundary").

With this simple solution if the cursor is outside the chart container it will be considered as if it is at the container edge.

Steps to reproduce the reproduce the unwanted behavior are reported in #2761.

The new behavior can be tested on the local ZoomContainerDemo example.

Copy link

changeset-bot bot commented Sep 5, 2024

🦋 Changeset detected

Latest commit: 4a7eaf9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 31 packages
Name Type
victory-zoom-container Patch
victory-create-container Patch
victory-native Patch
victory Patch
victory-area Patch
victory-axis Patch
victory-bar Patch
victory-box-plot Patch
victory-brush-container Patch
victory-brush-line Patch
victory-candlestick Patch
victory-canvas Patch
victory-chart Patch
victory-core Patch
victory-cursor-container Patch
victory-errorbar Patch
victory-group Patch
victory-histogram Patch
victory-legend Patch
victory-line Patch
victory-pie Patch
victory-polar-axis Patch
victory-scatter Patch
victory-selection-container Patch
victory-shared-events Patch
victory-stack Patch
victory-tooltip Patch
victory-vendor Patch
victory-voronoi-container Patch
victory-voronoi Patch
victory-docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
victory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 8:25am

@crcarlo crcarlo changed the title Fix/zoom out of chart Fix zoom out of chart with cursor outside chart container Sep 5, 2024
@carbonrobot
Copy link
Contributor

@carbonrobot carbonrobot merged commit 37c6448 into FormidableLabs:main Sep 5, 2024
6 of 7 checks passed
@victory-ci victory-ci mentioned this pull request Sep 5, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird zoom in/out!
2 participants