mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-28 10:40:07 +00:00
added dpi test...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4afbb3f773
commit
ed96100665
@ -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>
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user