Closed enk0de closed 1 year ago
@hoondeveloper
Perhaps you use the mousemove event? I guess you could use something like this:
viewer.getContainer().addEventListener("mousemove", e => {
const rect = viewer.getContainer().getBoundingClientRect();
const dx = e.clientX - rect.left;
const dy = e.clientY - rect.top;
});
Oh i see. Thanks. I'll use it.
there is no way to find viewer's relative position at current mouse pos. is there any way to find it that i don't know?