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: Visibility and zooming when canvas offset is not zero #2534

Merged
merged 8 commits into from Dec 14, 2020

Conversation

Jnforja
Copy link
Contributor

@Jnforja Jnforja commented Dec 13, 2020

This PR fixes 2 bugs:

  1. bug described on issue isVisibleElement broken for non-zero canvas offsets #2528
  2. Zooming on cursor not working when offset was not 0

@vercel
Copy link

vercel bot commented Dec 13, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/excalidraw/excalidraw/e443s62m6
✅ Preview: https://excalidraw-git-fix-visibility-when-offset.excalidraw.vercel.app

src/components/App.tsx Outdated Show resolved Hide resolved
@lipis lipis changed the title fix visibility and zoom on cursor when canvas offset is not zero fix: Visibility and zoom on cursor when canvas offset is not zero Dec 14, 2020
@dwelle
Copy link
Member

dwelle commented Dec 14, 2020

Works well. Thanks @Jnforja!

@dwelle dwelle changed the title fix: Visibility and zoom on cursor when canvas offset is not zero fix: Visibility and zooming when canvas offset is not zero Dec 14, 2020
@dwelle dwelle merged commit 4c7b1a2 into excalidraw:master Dec 14, 2020
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.

None yet

3 participants