projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20d32ca
)
bugfix.
author
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 08:54:04 +0000
(10:54 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 08:54:04 +0000
(10:54 +0200)
skins/photo_lightbox_viewer.js
patch
|
blob
|
history
diff --git
a/skins/photo_lightbox_viewer.js
b/skins/photo_lightbox_viewer.js
index
97c7f79
..
3438151
100644
(file)
--- a/
skins/photo_lightbox_viewer.js
+++ b/
skins/photo_lightbox_viewer.js
@@
-482,10
+482,10
@@
Lightbox.prototype.onDragStart = function(evt) {
Lightbox.prototype.onDragOver = function(evt) {
var target = getTargetedObject(evt);
Lightbox.prototype.onDragOver = function(evt) {
var target = getTargetedObject(evt);
- if (!target) {return;}
- while(target.className !== 'slide') {
+ while(target && target.className !== 'slide') {
target = target.parentNode;
}
target = target.parentNode;
}
+ if (!target) {return;}
target = target.parentNode;
if (target !== this.dragged) {
target.classList.add('dragover');
target = target.parentNode;
if (target !== this.dragged) {
target.classList.add('dragover');