e.pageX/e.clientX and e.pageY/e.clientY are always 0 for ondrag & ondragend events
As the Title says, I can't get the Position of both events, because e.pageX/e.clientX and e.pageY/e.clientY are always null. It works perfectly in Chromium, but not with Firefox. Is this just not implemented yet, or ist this a Bug?
This is my Code: htmlElement.addEventListener('drag', handleDrag, false); function handleDrag(e) { console.log('position: x=' + e.pageX + ' y=' + e.pageY); }
As the Title says, I can't get the Position of both events, because e.pageX/e.clientX and e.pageY/e.clientY are always null. It works perfectly in Chromium, but not with Firefox. Is this just not implemented yet, or ist this a Bug?
This is my Code:
htmlElement.addEventListener('drag', handleDrag, false);
function handleDrag(e) {
console.log('position: x=' + e.pageX + ' y=' + e.pageY);
}