mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-11-04 05:50:19 +00:00 
			
		
		
		
	more testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									a363984aaf
								
							
						
					
					
						commit
						071bc4d8c2
					
				@ -144,7 +144,14 @@ $(document).ready(function(){
 | 
			
		||||
			//		.ScrollTo does notwork...
 | 
			
		||||
			//limit_scroll()
 | 
			
		||||
			if(!touching){
 | 
			
		||||
				t = setTimeout(setCurrentPage, 100)
 | 
			
		||||
				t = setTimeout(function(){
 | 
			
		||||
					var n = getPageNumber()
 | 
			
		||||
					var page = $($('.page')[n])
 | 
			
		||||
					$('.current.page').removeClass('current')
 | 
			
		||||
					page.addClass('current')
 | 
			
		||||
					// attempt to make it without using .ScrollTo(...)
 | 
			
		||||
					$('.viewer').scrollLeft(page.position().left)
 | 
			
		||||
				}, 100)
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user