Continue work on itb
This commit is contained in:
12
tools/itb/js/mouse.js
Normal file
12
tools/itb/js/mouse.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function getMousePosition() {
|
||||
return {
|
||||
screenX: window.screenX,
|
||||
screenY: window.screenY,
|
||||
clientX: window.event ? window.event.clientX : 0,
|
||||
clientY: window.event ? window.event.clientY : 0
|
||||
};
|
||||
}
|
||||
|
||||
function getElementAtPosition(x, y) {
|
||||
return document.elementFromPoint(x, y);
|
||||
}
|
||||
Reference in New Issue
Block a user