Camera freezes on click while in pointer lock

I have a program that uses pointer lock. When the user clicks, the camera freezes. Is there a way to stop this from happening?

Hello, what do you mean by freeze? Like you cannot move the camera anymore? Is it only on firefox(which has a bug referenced for that since forever)?