From: Vincent Vanwaelscappel Date: Mon, 12 Jun 2017 15:21:29 +0000 (+0200) Subject: wip #1445 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4cda1d8028b2eba356fbc63723b6b59d03f2aab5;p=fluidbook-html5.git wip #1445 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.slider.js b/js/libs/fluidbook/fluidbook.slider.js index 861b78a3..8bf2d050 100644 --- a/js/libs/fluidbook/fluidbook.slider.js +++ b/js/libs/fluidbook/fluidbook.slider.js @@ -64,7 +64,7 @@ FluidbookSlider.prototype = { page = Math.floor(pos / (this.sliderWidth / this.snapsCount)) * 2; pageMin = 0; } - + page = Math.min(this.fluidbook.datas.pages, Math.max(pageMin, page)); if (gotoPage) { @@ -172,9 +172,11 @@ FluidbookSlider.prototype = { this.setThumb($("#sliderthumb .doubleThumb").find('.thumb.left'), left); this.setThumb($("#sliderthumb .doubleThumb").find('.thumb.right'), right); + this.fluidbook.bookmarks.updateBookmarks(); }, setThumb: function (thumb, page) { + thumb.find('.bookmark').attr('data-page', page); if (page > 0 && page <= this.fluidbook.datas.pages) { thumb.css('visibility', 'visible'); this.fluidbook.loader.getThumbImage(page, thumb.find('.img')); diff --git a/style/fluidbook.less b/style/fluidbook.less index 1d0c8e49..43bd2092 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -819,12 +819,6 @@ html.ios body.portrait #interface { } } -#indexView .bookmark { - width: 35px; - height: 35px; - z-index: 2; -} - .landscape .bookmark.left { left: 0px; } @@ -1057,6 +1051,12 @@ form input[type="text"], form input[type="email"] { left: 0px; font-size: 12px; + .bookmark { + width: 35px; + height: 35px; + z-index: 2; + } + .img { width: 100px; height: @thumb-height;