demo
This commit is contained in:
parent
01397c52ac
commit
1ee56b76bd
|
|
@ -68,7 +68,7 @@ rotation: from.x"
|
|||
// ropes.forEach(rope => { rope.gravity = { x: 0, y: 0} })
|
||||
}
|
||||
|
||||
async function enableGravity() {
|
||||
window.enableGravity = async function enableGravity() {
|
||||
if (DeviceOrientationEvent.requestPermission) {
|
||||
const permission = await DeviceOrientationEvent.requestPermission();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue