Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Problem:** If a scrubbing using the new pointer lock based scrubber control was quick enough, we would often not release the pointer on mouse up – instead leaving you with a hidden cursor until you press Esc. **Fix:** Turns out, `document.pointerLockElement` is still null for a few moments after getting pointer lock, and our code calling `document.exitPointerLock` checks if the pointer lock element is the same as the current control's target. By simply removing the check, we call exitPointerLock() all of the time, making it not brittle anymore.
- Loading branch information