mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +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() | 	setupEditor() | ||||||
| 
 | 
 | ||||||
|  | 	$('.dpi').text(getDPI()) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 	// hide the splash... | 	// hide the splash... | ||||||
| 	setTimeout(function(){ | 	setTimeout(function(){ | ||||||
| @ -514,7 +516,7 @@ $(document).ready(function(){ | |||||||
| 						</ul> | 						</ul> | ||||||
| 					</big> | 					</big> | ||||||
| 					<div style="position:absolute; bottom:10px; right:30px"> | 					<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> | ||||||
| 
 | 
 | ||||||
| 					<div class="page-number-text">[PAGE NUMBER]</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...
 | 	// XXX this is only horizontal at this point...
 | ||||||
| 	var at = getElementShift(mag).left | 	var at = getElementShift(mag).left | ||||||
| 	var d = MAX_DISTANCE_TO_SCROLL != null ? MAX_DISTANCE_TO_SCROLL : Infinity | 	var d = MAX_DISTANCE_TO_SCROLL != null ? MAX_DISTANCE_TO_SCROLL : Infinity | ||||||
| 	var s = sign(speed) | 	var s = sign(speed) >= 0 ? 1 : -1 | ||||||
| 	s = s == 0 ? +1 : s |  | ||||||
| 	var to = (at + (Math.min(Math.abs(t*speed*INNERTIA_SCALE), d) * s)) | 	var to = (at + (Math.min(Math.abs(t*speed*INNERTIA_SCALE), d) * s)) | ||||||
| 	var first = getMagazineOffset(pages.first(), null, 'center') | 	var first = getMagazineOffset(pages.first(), null, 'center') | ||||||
| 	var last = getMagazineOffset(pages.last(), null, 'center') | 	var last = getMagazineOffset(pages.last(), null, 'center') | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user