From 578b0986d2b8fbcc52fb6a38961a568469046e85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Fri, 10 Oct 2014 11:27:59 +0200 Subject: [PATCH 1/1] =?utf8?q?D=C3=A9sactivation=20du=20dragover=20si=20ri?= =?utf8?q?en=20n'est=20s=C3=A9lectionn=C3=A9=C2=A0:=C2=A0se=20produit=20lo?= =?utf8?q?rs=20d'un=20upload=20par=20drag=20and=20drop.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/photo_lightbox_viewer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skins/photo_lightbox_viewer.js b/skins/photo_lightbox_viewer.js index 3438151..024e01e 100644 --- a/skins/photo_lightbox_viewer.js +++ b/skins/photo_lightbox_viewer.js @@ -481,6 +481,9 @@ Lightbox.prototype.onDragStart = function(evt) { }; Lightbox.prototype.onDragOver = function(evt) { + if (!this.dragged) { + return; + } var target = getTargetedObject(evt); while(target && target.className !== 'slide') { target = target.parentNode; -- 2.20.1