From dcb425ebbf81b068b1e4c679c060ee205d967d71 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jan 2011 20:56:32 -0700 Subject: [PATCH] E-book viewer: When scrolling to a bookmark and the content is wider than the window, do not scroll in the horizontal direction --- resources/viewer/bookmarks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/viewer/bookmarks.js b/resources/viewer/bookmarks.js index d36e7c579a..467e4d9d38 100644 --- a/resources/viewer/bookmarks.js +++ b/resources/viewer/bookmarks.js @@ -41,6 +41,7 @@ function scroll_to_bookmark(bookmark) { $.scrollTo($(bm[0]), 1000, { over:ratio, + axis: 'y', onAfter:function(){window.py_bridge.animated_scroll_done()} } );