diff --git a/msagent.js/src/agent.ts b/msagent.js/src/agent.ts index f3ff086..61ed751 100644 --- a/msagent.js/src/agent.ts +++ b/msagent.js/src/agent.ts @@ -232,7 +232,7 @@ export class Agent { { once: true } ); }); - + document.addEventListener('touchmove', (e) => { if (!this.dragging) return; @@ -258,7 +258,7 @@ export class Agent { this.y += e.movementY; this.setLoc(); }); - + window.addEventListener('resize', () => { this.setLoc(); }); diff --git a/webapp/src/css/style.scss b/webapp/src/css/style.scss index 2fced56..6d77a00 100644 --- a/webapp/src/css/style.scss +++ b/webapp/src/css/style.scss @@ -255,4 +255,4 @@ body { button { user-select: none; -} \ No newline at end of file +} diff --git a/webapp/src/ts/MSWindow.ts b/webapp/src/ts/MSWindow.ts index 72fdae1..b545c6c 100644 --- a/webapp/src/ts/MSWindow.ts +++ b/webapp/src/ts/MSWindow.ts @@ -96,7 +96,7 @@ export class MSWindow { { once: true } ); }); - + document.addEventListener('touchmove', (e) => { if (!this.dragging) return;