pointer-lock:呈现事件发射器流api的指针锁polyfill

时间:2021-05-08 14:14:43
【文件属性】:
文件名称:pointer-lock:呈现事件发射器流api的指针锁polyfill
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-08 14:14:43
JavaScript 指针锁 指针锁定api公开为事件发射器,该事件发射器发出可读的鼠标移动数据流。 自动处理在目标元素上添加适当的mousedown / up事件侦听器。 尝试重用对象而不是创建新对象,以保持较低的垃圾生成率。 如果你很不错的话,也许会唱歌给你听。 var lock = require ( 'pointer-lock' ) , my_element = document . getElementById ( 'element' ) if ( ! lock . available ( ) ) return alert ( 'not available!' ) // my_element can be any element currently attached to // the document -- but not the document itself (document.bod
【文件预览】:
pointer-lock-master
----test()
--------index.html(268B)
--------test.js(1KB)
----README.md(2KB)
----index.js(4KB)
----package.json(593B)

网友评论