mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Disable drag and drop on mobile
This commit is contained in:
parent
e1d6e5bdad
commit
6c5a1f7006
@ -103,6 +103,9 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
|
|||||||
updatePageState(this);
|
updatePageState(this);
|
||||||
});
|
});
|
||||||
canvasContainer.addEventListener('dragstart', function(e) {
|
canvasContainer.addEventListener('dragstart', function(e) {
|
||||||
|
if(is_mobile()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.querySelector('.container-resize').classList.add('d-none');
|
this.querySelector('.container-resize').classList.add('d-none');
|
||||||
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
|
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
|
||||||
this.querySelector('.canvas-pdf').style.border = '2px dashed #777';
|
this.querySelector('.canvas-pdf').style.border = '2px dashed #777';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user