projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Calcul de la retaille prenant en compte l'absence de barre de scroll horizontal
[Portfolio.git]
/
skins
/
photo_film_viewer.js
diff --git
a/skins/photo_film_viewer.js
b/skins/photo_film_viewer.js
index
9bbf5ef
..
ff8d61e
100644
(file)
--- a/
skins/photo_film_viewer.js
+++ b/
skins/photo_film_viewer.js
@@
-113,6
+113,7
@@
FilmSlider.prototype.resizeSlider = function(evt) {
}
else {
}
else {
+ // pas de barre de scroll horizontal pour les tablettes
FilmSlider.prototype.resizeSlider = function(evt) {};
}
FilmSlider.prototype.resizeSlider = function(evt) {};
}
@@
-158,7
+159,12
@@
FilmSlider.prototype.fitToScreen = function(evt) {
FilmSlider.prototype._fitToScreen = function(evt) {
var wh = getWindowHeight();
FilmSlider.prototype._fitToScreen = function(evt) {
var wh = getWindowHeight();
+ if (!browser.isMobile) {
var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom
var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom
+ }
+ else {
+ var rb = getObjectTop(this.filmBar) + getObjectHeight(this.filmBar); // film bottom
+ }
var delta = wh - rb;
var sh = getObjectHeight(this.stretchable);
var newSize = sh + delta;
var delta = wh - rb;
var sh = getObjectHeight(this.stretchable);
var newSize = sh + delta;