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: no jittering with "round" commit strategy #133

Merged
merged 9 commits into from
Mar 12, 2024
Merged

Conversation

stropitek
Copy link
Contributor

@stropitek stropitek commented Mar 11, 2024

Ref: #132

This does not completely solve the issue but improves it by a lot.

BREAKING CHANGE: make round the default commit box strategy

- fix jiggling by using a remainder and updating size by whole numbers
- move files and fix label
- choose typescript version compatible with eslint
Copy link

cloudflare-workers-and-pages bot commented Mar 11, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ef2312
Status: ✅  Deploy successful!
Preview URL: https://d5ea4564.react-roi.pages.dev
Branch Preview URL: https://resize-jiggling.react-roi.pages.dev

View logs

@stropitek
Copy link
Contributor Author

@targos Do you think the level of jittering is now acceptable? I don't really have ideas left to improve it.

What I like about the change is that during resize, the change in size appears in whole width / height increments (try a very large zoom to see it)

This limits how much the the ROI changes once the user finishes the resize action

@stropitek stropitek merged commit 71dd546 into main Mar 12, 2024
9 checks passed
@stropitek stropitek deleted the resize-jiggling branch March 12, 2024 12:28
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.

2 participants