Hi,
One way to achieve this is by using the “mousemove” event to keep track of the mouse:
let mouseX, mouseY;
document.querySelector(‘smart-scheduler’).addEventListener(‘contextMenuOpening’, function(event){
event.preventDefault();
console.log(mouseX, mouseY)
})
document.querySelector(‘smart-scheduler’).addEventListener(‘mousemove’, function(event){
mouseX = event.pageX;
mouseY = event.pageY
})
Best regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/