X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/a3732c58de2390b45546badf2e36cf4fe33c72aa..320341dca66e5887ba1da118138693fc161074a0:/skins/photo_film_viewer.js diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index 9bbf5ef..ff8d61e 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -113,6 +113,7 @@ FilmSlider.prototype.resizeSlider = function(evt) { } else { + // pas de barre de scroll horizontal pour les tablettes FilmSlider.prototype.resizeSlider = function(evt) {}; } @@ -158,7 +159,12 @@ FilmSlider.prototype.fitToScreen = function(evt) { FilmSlider.prototype._fitToScreen = function(evt) { var wh = getWindowHeight(); + if (!browser.isMobile) { 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;