more tweeks, still dancing, but now there is hope...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-13 18:11:53 +04:00
parent 577a4292cd
commit bcfcb2c0d3

View File

@ -147,11 +147,16 @@ $(document).ready(function(){
runMagazineTemplates()
//setCurrentPage(0)
limit_scroll()
//limit_scroll()
})
var SCROLL_LIMIT = 800 * 1.5
function setup_scroll_limiter(){
$('.magazine').wrapAll($('<div class="scroller">'))
limit_scroll()
}
// XXX set the limit to next/prev page alignment...
function limit_scroll(){
var W = $('.viewer').width()
@ -181,8 +186,6 @@ function clear_limits(){
<div class="viewer">
<div class='scroller'>
<div class="magazine" name="PortableMag">
<div class="cover page">
<div class="content">
@ -545,8 +548,6 @@ function clear_limits(){
</div>
</div>
</body>
</html>
<!-- vim:set ts=4 sw=4 nowrap : -->