You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a use case where I need to be able to dynamically turn the clamping on and off based on my displayed content.
The documentation says: "NOTES: clamp is disabled if called with no options", but this seems to not work at all. The panning is still restricted, only my previously passed config seems to go away.
This can also be reproduced if I just call .clamp() as-is for the first time on the view, the panning is already restricted. I tried to play around with the screenWidth, screenHeight, worldWidth, and worldHeight properties as well (since my worldWidth and worldHeight would be 0 otherwise) but that didn't help either.
Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered:
Hi, I have a use case where I need to be able to dynamically turn the clamping on and off based on my displayed content.
The documentation says: "NOTES: clamp is disabled if called with no options", but this seems to not work at all. The panning is still restricted, only my previously passed config seems to go away.
This can also be reproduced if I just call .clamp() as-is for the first time on the view, the panning is already restricted. I tried to play around with the screenWidth, screenHeight, worldWidth, and worldHeight properties as well (since my worldWidth and worldHeight would be 0 otherwise) but that didn't help either.
Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered: