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
							
								
									071bc4d8c2
								
							
						
					
					
						commit
						6292c13c2e
					
				@ -150,7 +150,11 @@ $(document).ready(function(){
 | 
			
		||||
					$('.current.page').removeClass('current')
 | 
			
		||||
					page.addClass('current')
 | 
			
		||||
					// attempt to make it without using .ScrollTo(...)
 | 
			
		||||
					$('.viewer').scrollLeft(page.position().left)
 | 
			
		||||
					// XXX the problem appears to be in the .scrollLeft(...)
 | 
			
		||||
					//		that does not work on some webkit browser versions
 | 
			
		||||
					//		namely on android it's "odd" to say the least...
 | 
			
		||||
					//$('.viewer').scrollLeft(page.position().left)
 | 
			
		||||
					$('.viewer')[0].scrollLeft = page.position().left
 | 
			
		||||
				}, 100)
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user