hid plugins fix

This commit is contained in:
Devaev Maxim
2020-11-12 23:40:39 +03:00
parent 180251ec59
commit 65c6abee24
3 changed files with 9 additions and 5 deletions

View File

@@ -79,9 +79,6 @@ export function Mouse(record_callback) {
self.setState = function(state) {
__online = state.online;
if (!("absolute" in state)) { // FIXME: SPI
state.absolute = true;
}
if (!__absolute && state.absolute && __isRelativeCaptured()) {
document.exitPointerLock();
}