]> _ Git - fluidbook-html5.git/commitdiff
wip #1445 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2017 15:21:29 +0000 (17:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2017 15:21:29 +0000 (17:21 +0200)
js/libs/fluidbook/fluidbook.slider.js
style/fluidbook.less

index 861b78a38450041dd915c7ca611a84bf6713da41..8bf2d05004523e657cc1cc37899b431627a4835f 100644 (file)
@@ -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'));
index 1d0c8e4912c64fe9b43c357526afcf737eb5c939..43bd20923b4b7263819df20ddd895b0cbb27544f 100644 (file)
@@ -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;