MCPcopy Create free account
hub / github.com/melonjs/melonJS / disableSwipeFn

Function disableSwipeFn

packages/melonjs/src/system/device.ts:55–61  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

53let WebGLSupport = -1;
54
55function disableSwipeFn(e: Event) {
56 e.preventDefault();
57 if (typeof globalThis.scroll === "function") {
58 globalThis.scroll(0, 0);
59 }
60 return false;
61}
62
63function hasLocalStorage() {
64 try {

Callers

nothing calls this directly

Calls 1

preventDefaultMethod · 0.80

Tested by

no test coverage detected