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

Function touchDownFunc

wasm/reset_events.js:228–240  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

226 var oldCalcMovementFunction = Browser.calculateMouseEvent;
227
228 var touchDownFunc = function (event) {
229 var proceed = true;
230 if (touchId[0] == -1)
231 touchId[0] = event.pointerId;
232 else if (touchId[1] == -1)
233 touchId[1] = event.pointerId;
234 else
235 proceed = false;
236 if (proceed) {
237 pointerCounter++;
238 touchEventProcess(event, 'emsTouchStart');
239 }
240 }
241
242 Browser.calculateMouseEvent = function (event) {
243 var bubbleUp = true;

Callers 1

updateEventsFunction · 0.85

Calls 1

touchEventProcessFunction · 0.85

Tested by

no test coverage detected