MCPcopy
hub / github.com/bevacqua/dragula / getCoord

Function getCoord

dragula.js:599–609  ·  view source on GitHub ↗
(coord, e)

Source from the content-addressed store, hash-verified

597}
598
599function getCoord (coord, e) {
600 var host = getEventHost(e);
601 var missMap = {
602 pageX: 'clientX', // IE8
603 pageY: 'clientY' // IE8
604 };
605 if (coord in missMap && !(coord in host) && missMap[coord] in host) {
606 coord = missMap[coord];
607 }
608 return host[coord];
609}
610
611module.exports = dragula;

Callers 3

startBecauseMouseMovedFunction · 0.85
releaseFunction · 0.85
dragFunction · 0.85

Calls 1

getEventHostFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…