Maybe it’s because setting the lockedTarget property disables panning?
Define the current target of the camera as an object or a position.
Please note that locking a target will disable panning.
So I found a workaround. When the object-to-track’s animation is started I gonna add and onBeforeRenderObservable which is setting the camera’s target property over and over again as long as the objects animation isPlaying. After the animation ended i remove the observable.