E-book viewer: When scrolling to a bookmark and the content is wider than the window, do not scroll in the horizontal direction

This commit is contained in:
Kovid Goyal 2011-01-06 20:56:32 -07:00
parent 32c1ef8ef6
commit dcb425ebbf

View File

@ -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()}
}
);