MCPcopy Create free account
hub / github.com/microsoft/SandDance / hasClientXY

Function hasClientXY

docs/app/js/sanddance-app.js:19328–19333  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

19326// Copyright (c) Microsoft Corporation. All rights reserved.
19327// Licensed under the MIT license.
19328function hasClientXY(e) {
19329 if (e && e.clientX !== undefined && e.clientX !== undefined) return {
19330 top: e.clientY,
19331 left: e.clientX
19332 };
19333}
19334function getPosition(e) {
19335 let xy = hasClientXY(e);
19336 if (xy) return xy;

Callers 1

getPositionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected