projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Calcul du seuil à dépasser pour charger de nouvelles photos.
[Portfolio.git]
/
skins
/
photo_lightbox_viewer.js
diff --git
a/skins/photo_lightbox_viewer.js
b/skins/photo_lightbox_viewer.js
index
5244a68
..
0b40288
100644
(file)
--- a/
skins/photo_lightbox_viewer.js
+++ b/
skins/photo_lightbox_viewer.js
@@
-14,6
+14,7
@@
var reSelected = /.*selected.*/;
Lightbox = function(grid, toolbar) {
var self = this;
this.grid = grid;
Lightbox = function(grid, toolbar) {
var self = this;
this.grid = grid;
+ this.lastSlide = this.grid.children[this.grid.children.length-1];
this.toolbar = toolbar;
if (toolbar) {
this.toolbarFixed = false;
this.toolbar = toolbar;
if (toolbar) {
this.toolbarFixed = false;
@@
-51,6
+52,9
@@
Lightbox.prototype.windowScrollHandler = function(evt) {
this.toolbarFixed = false;
this.switchToolBarPositioning(false);
}
this.toolbarFixed = false;
this.switchToolBarPositioning(false);
}
+ if (window.scrollY > this.lastSlide.firstElementChild.offsetTop - getWindowHeight()) {
+ console.log('À boire !');
+ }
};
Lightbox.prototype.mouseClickHandler = function(evt) {
};
Lightbox.prototype.mouseClickHandler = function(evt) {