From 1ee56b76bd77281fb5753baa1da0ef27486fa934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchrisshank=E2=80=9D?= Date: Fri, 20 Dec 2024 13:35:45 -0800 Subject: [PATCH] demo --- website/canvas/event-propagators-with-device-gravity.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/canvas/event-propagators-with-device-gravity.html b/website/canvas/event-propagators-with-device-gravity.html index d95bd23..362c811 100644 --- a/website/canvas/event-propagators-with-device-gravity.html +++ b/website/canvas/event-propagators-with-device-gravity.html @@ -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();