MCPcopy Create free account
hub / github.com/apache/cloudstack / getPointerEvent

Function getPointerEvent

systemvm/agent/noVNC/core/util/events.js:13–15  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

11 */
12
13export function getPointerEvent(e) {
14 return e.changedTouches ? e.changedTouches[0] : e.touches ? e.touches[0] : e;
15}
16
17export function stopEvent(e) {
18 e.stopPropagation();

Callers 2

dragControlbarHandleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected