added dpi test...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-04 18:06:08 +04:00
parent 4afbb3f773
commit ed96100665
2 changed files with 4 additions and 3 deletions

View File

@ -306,6 +306,8 @@ $(document).ready(function(){
setupEditor()
$('.dpi').text(getDPI())
// hide the splash...
setTimeout(function(){
@ -514,7 +516,7 @@ $(document).ready(function(){
</ul>
</big>
<div style="position:absolute; bottom:10px; right:30px">
<a href="#next">get started...</a><br>
<span class="dpi">dpi</span><a href="#next">get started...</a><br>
</div>
<div class="page-number-text">[PAGE NUMBER]</div>

View File

@ -218,8 +218,7 @@ function handleScrollRelease(evt, data){
// XXX this is only horizontal at this point...
var at = getElementShift(mag).left
var d = MAX_DISTANCE_TO_SCROLL != null ? MAX_DISTANCE_TO_SCROLL : Infinity
var s = sign(speed)
s = s == 0 ? +1 : s
var s = sign(speed) >= 0 ? 1 : -1
var to = (at + (Math.min(Math.abs(t*speed*INNERTIA_SCALE), d) * s))
var first = getMagazineOffset(pages.first(), null, 'center')
var last = getMagazineOffset(pages.last(), null, 'center')