[gnome-documents/wip/hadess/pagination] epub: Remove need to scroll in epubs



commit 207601dde5269bda69fbcce16272f21796b29325
Author: Daniel GarcĂ­a Moreno <danigm wadobo com>
Date:   Sat Jan 13 00:15:48 2018 +0100

    epub: Remove need to scroll in epubs
    
    Remove need to scroll in ePub files by using the pagination support in
    libgepub.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782884

 src/epubview.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/epubview.js b/src/epubview.js
index 88b9580c..e830a284 100644
--- a/src/epubview.js
+++ b/src/epubview.js
@@ -68,6 +68,7 @@ var EPUBView = new Lang.Class({
 
     createView: function() {
         let view = new Gepub.Widget();
+        view.paginate = true;
 
         let fc = view.get_find_controller();
         fc.connect('found-text', Lang.bind(this, function(view, matchCount, data) {
@@ -137,11 +138,11 @@ var EPUBView = new Lang.Class({
     },
 
     goPrev: function() {
-        this._epubdoc.go_prev();
+        this.view.page_prev();
     },
 
     goNext: function() {
-        this._epubdoc.go_next();
+        this.view.page_next();
     },
 
     get hasPages() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]