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

En mobile la séléction ne reste pas active

This commit is contained in:
Vincent LAURENT 2021-11-10 01:15:17 +01:00
parent 2186a62a57
commit 5494796e06

View file

@ -11,9 +11,12 @@ var canvasEditions = [];
var loadingTask = pdfjsLib.getDocument(url);
loadingTask.promise.then(function(pdf) {
var is_mobile = function() {
return !(window.getComputedStyle(document.getElementById('is_mobile')).display === "none");
}
var fontCaveat = null;
var forceAddLock = true;
var addLock = forceAddLock;
var forceAddLock = !is_mobile();
var copiedObject = null;
var activeCanvas = null;
var activeCanvasPointer = null;
@ -32,10 +35,6 @@ loadingTask.promise.then(function(pdf) {
pdfHistory = JSON.parse(localStorage.getItem('pdfHistory'));
}
var is_mobile = function() {
return !(window.getComputedStyle(document.getElementById('is_mobile')).display === "none");
}
var responsiveDisplay = function() {
if(is_mobile()) {
document.body.style.paddingRight = "";