1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-08 08:52:16 +02:00

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

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';