-
Notifications
You must be signed in to change notification settings - Fork 937
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
Fixes #3847 Bug Inconsistent zoom behavior #4148
Conversation
@walterbender Please Review, issue is #3847 |
How did you test this? |
@walterbender Initially, the blocks would get stuck when zooming in/out Screen.Recording.2024-12-19.at.9.52.00.AM.mp4 |
@walterbender Just refreshing the canvas did not solve the issue, so I added a clearcache method and stage update. I have tested with multiple blocks, the zoom is working fine now. Screen.Recording.2024-12-19.at.11.40.18.AM.mp4 |
Yes it seems I have to update cache for bitmap also. @walterbender pls review Screen.Recording.2024-12-20.at.1.42.50.PM.mp4 |
f5bdae3
to
702fd48
Compare
@walterbender Any idea why the smoke test is failing |
It is unrelated to your PR. It is a misconfiguration somewhere. |
@walterbender Yes, I figured, so far the only issue I am facing is when zooming multiple times in quick succession it cannot update the cache, which causes some of the blocks to get stuck. So shall I add a debounce of 250ms to prevent this. Otherwise, it works as expected |
A debounce is a good idea. |
@walterbender Pls review |
@walterbender Yes, I noticed too, this happens bcos I called the container.cache(). If I don't, it works much better but then I am getting these errors in the console for some reason. I think it might be bcos of some EaseIJS requirement. But I'm trying to find a way around this. |
@walterbender I have figured out a way, by updating the refreshCanvas function, it now works the way it was but without any errors, pls review |
Initially, blocks would get stuck when Zooming In/Out.
Key Changes: