mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
En mobile la séléction ne reste pas active
This commit is contained in:
parent
2186a62a57
commit
5494796e06
@ -11,9 +11,12 @@ var canvasEditions = [];
|
|||||||
var loadingTask = pdfjsLib.getDocument(url);
|
var loadingTask = pdfjsLib.getDocument(url);
|
||||||
loadingTask.promise.then(function(pdf) {
|
loadingTask.promise.then(function(pdf) {
|
||||||
|
|
||||||
|
var is_mobile = function() {
|
||||||
|
return !(window.getComputedStyle(document.getElementById('is_mobile')).display === "none");
|
||||||
|
}
|
||||||
var fontCaveat = null;
|
var fontCaveat = null;
|
||||||
var forceAddLock = true;
|
|
||||||
var addLock = forceAddLock;
|
var addLock = forceAddLock;
|
||||||
|
var forceAddLock = !is_mobile();
|
||||||
var copiedObject = null;
|
var copiedObject = null;
|
||||||
var activeCanvas = null;
|
var activeCanvas = null;
|
||||||
var activeCanvasPointer = null;
|
var activeCanvasPointer = null;
|
||||||
@ -32,10 +35,6 @@ loadingTask.promise.then(function(pdf) {
|
|||||||
pdfHistory = JSON.parse(localStorage.getItem('pdfHistory'));
|
pdfHistory = JSON.parse(localStorage.getItem('pdfHistory'));
|
||||||
}
|
}
|
||||||
|
|
||||||
var is_mobile = function() {
|
|
||||||
return !(window.getComputedStyle(document.getElementById('is_mobile')).display === "none");
|
|
||||||
}
|
|
||||||
|
|
||||||
var responsiveDisplay = function() {
|
var responsiveDisplay = function() {
|
||||||
if(is_mobile()) {
|
if(is_mobile()) {
|
||||||
document.body.style.paddingRight = "";
|
document.body.style.paddingRight = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user