
static.js.vendor.modernizr.feature-detects.pointerlock-api.js Maven / Gradle / Ivy
The newest version!
/*!
{
"name": "Pointer Lock API",
"property": "pointerlock",
"notes": [{
"name": "MDN documentation",
"href": "https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API"
}],
"builderAliases": ["pointerlock_api"]
}
!*/
/* DOC
Detects support the pointer lock API which allows you to lock the mouse cursor to the browser window.
*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
// https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API
Modernizr.addTest('pointerlock', !!prefixed('exitPointerLock', document));
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy