drag session.
      event.preventDefault();
    }, {once: true, capture: true});

    document.getElementById("div3").addEventListener("pointerenter", event => {
      requestAnimationFrame(() => {
        // Remove div3 causes moving div4 underneath the cursor
        event.target.remove();
        document.getElementById("div4").getBoundingClientRect();
      });
    }, {once: true, capture: true});
    document.getElementById("div4").addEventListener("pointerenter", event => {
      requestAnimationFrame