-
-
Notifications
You must be signed in to change notification settings - Fork 847
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
Allowing ability to set Padding as stop #1844
Conversation
Fixes issue where padding is not respected when using .setCamera()
@dorthwein When I attempt to run this, I do see the padding get changed, but the change is instantaneous instead of smoothly animated. The reason for the extra logic in #1838 it's because the If I'm wrong and you see something different when you run your code, let me know! cc @mfazekas padding.mov |
@naftalibeder - I think the missing piece is you're not setting an animation duration on the props or in setCamera in the given example. If you set the animationMode & an animationDuration it should gracefully add the padding. To be clear, it does animate for me and is not the sudden jerking motion in your video. Try adding an animation duration and animation mode and let me know if that fixes it for you. |
@dorthwein So! I'm not sure what my issue was before, but you're right that the padding does seem to animate for PR-1844.movWhereas in the one I have in progress, it animates the padding smoothly: PR-1838.movAm I missing something? Happy to retract my statement if I'm wrong. :) However if you don't mind the theft, I think I'll only use the lower-level animator for |
@naftalibeder - I have no issue with you using my changes in your PR and that being the one that ends up in main ;) - I have a hunch the flyTo jump is probably due to something else going on though. I was able to reproduce the jump when using flyTo. My only concern with your implementation is the code seemed to diverge from main more in the UpdateItem. I defer to @mfazekas on which he wants to pull in on this. |
So I think we're going to keep the more complex logic for now to handle Edit: See #1838 (comment). |
Fixes issue where padding is not respected when using .setCamera()
Description
Fixes issue where padding not respected when used in Camera Stops
Checklist
yarn lint:fix
in the root folderyarn generate
in the root folderCHANGELOG.md
index.d.ts
)/example
)Screenshot OR Video