79436885

Date: 2025-02-13 15:40:17
Score: 0.5
Natty:
Report link

I found a way to fix this behaviour, anyone who might need it in the future here it is:

    document.addEventListener("pointerdown", (event: PointerEvent) => {
      const target = event.target as HTMLElement;
      target.setPointerCapture(event.pointerId);
    });

    document.addEventListener("pointerup", (event: PointerEvent) => {
      const target = event.target as HTMLElement;
      target.releasePointerCapture(event.pointerId);
    });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mr.B