mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Si le click dans un canvas est pour déplacer un objet on ne rajoute par
l'objet séléctionné dans le canvas
This commit is contained in:
parent
7d5228d649
commit
bd3daccf82
@ -750,6 +750,9 @@ loadingTask.promise.then(function(pdf) {
|
|||||||
activeCanvasPointer = event.pointer;
|
activeCanvasPointer = event.pointer;
|
||||||
});
|
});
|
||||||
canvasEdition.on('mouse:down', function(event) {
|
canvasEdition.on('mouse:down', function(event) {
|
||||||
|
if(event.target) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var input_selected = document.querySelector('input[name="svg_2_add"]:checked');
|
var input_selected = document.querySelector('input[name="svg_2_add"]:checked');
|
||||||
if(!input_selected) {
|
if(!input_selected) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user