Dear developers,
when I try to get the id under mouse cursor with a "click" event listener
window.addEventListener('click', function(e) {
var x = e.clientX, y = e.clientY;
var elementMouseIsOver = document.elementFromPoint(x, y);
console.log(elementMouseIsOver);
});
(in a function stored in ./pentadactyl/plugins), I always get the following :
Dear developers, when I try to get the id under mouse cursor with a "click" event listener
(in a function stored in ./pentadactyl/plugins), I always get the following :
regardless of the location of the cursor. Could you help me to get the right thing, namely the object under the cursor ? Thanks.