Disable pull to request on a plugin page

Re: Disable pull to request on a plugin page

by Adrián Rodríguez -
Number of replies: 0

Hi Dani,

Thanks for opening a issue. At the moment, I have used this workaround so that the event doesn't reach PTR component:

// touchmove handler
function process_touchmove(ev) {
  ev.preventDefault();
  ev.stopPropagation();
}

const map = document.getElementById("map");
map.addEventListener("touchmove", process_touchmove, false);