MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / touchEventProcess

Function touchEventProcess

wasm/reset_events.js:214–223  ·  view source on GitHub ↗
(event, funcName)

Source from the content-addressed store, hash-verified

212
213 // make own touch events callbacks
214 var touchEventProcess = function (event, funcName) {
215 var rect = Module["canvas"].getBoundingClientRect();
216 var coords = getPos(event, rect);
217 if (event.isPrimary && pointerCounter == 1) {
218 Browser.mouseX = coords.x;
219 Browser.mouseY = coords.y;
220 }
221 Module.ccall(funcName, 'number', ['number', 'number', 'number'],
222 [event.pointerId, coords.x, coords.y]);
223 }
224
225 // main event func determine what to call
226 var oldCalcMovementFunction = Browser.calculateMouseEvent;

Callers 2

touchDownFuncFunction · 0.85
updateEventsFunction · 0.85

Calls 1

getPosFunction · 0.85

Tested by

no test coverage detected