zakodium-oss / react-roi

https://react-roi.pages.dev/
https://react-roi.pages.dev/
0 stars 0 forks source link

fix: no jittering with "round" commit strategy #133

Closed stropitek closed 6 months ago

stropitek commented 6 months ago

Ref: #132

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

cloudflare-pages[bot] commented 6 months ago

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 commented 6 months ago

@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