Disable drag and drop on mobile

This commit is contained in:
Vincent LAURENT 2022-10-08 00:09:41 +02:00
parent e1d6e5bdad
commit 6c5a1f7006
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
updatePageState(this);
});
canvasContainer.addEventListener('dragstart', function(e) {
if(is_mobile()) {
return false;
}
this.querySelector('.container-resize').classList.add('d-none');
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
this.querySelector('.canvas-pdf').style.border = '2px dashed #777';