MCPcopy
hub / github.com/seiyria/bootstrap-slider / calcMouseEventCoords

Function calcMouseEventCoords

test/specs/TooltipMouseOverOptionSpec.js:143–150  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

141 var mouseEventArguments;
142
143 function calcMouseEventCoords(element) {
144 var elementBB = element.getBoundingClientRect();
145
146 return {
147 clientX: elementBB.left,
148 clientY: elementBB.top
149 };
150 }
151
152 function createMouseEvent(type, clientX, clientY) {
153 var mouseEvent = document.createEvent('MouseEvent');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…