 "pointerleave"]) {
      body.addEventListener(type, recordEvent, {capture: true});
    }
    let pointerId = 0;
    body.addEventListener("pointerdown", event => {
      record = true;
      pointerId = event.pointerId;
    }, {once: true, capture: true});
    body.addEventListener("pointerup", event => {
      record = false;
    }, {once: true, capture: true});
    body.addEventListener("dragstart", event => {
      // We want to check the boundary events during a drag so that we want
      // a native 