mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-11-04 05:50:19 +00:00 
			
		
		
		
	another experiment.............
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									370929cb97
								
							
						
					
					
						commit
						abb7eb0255
					
				
							
								
								
									
										17
									
								
								layout.html
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								layout.html
									
									
									
									
									
								
							@ -114,22 +114,25 @@ $(document).ready(function(){
 | 
				
			|||||||
	window.touching = false
 | 
						window.touching = false
 | 
				
			||||||
	window.t = 0
 | 
						window.t = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	setInterval(function(){
 | 
						function monitor_scroll(){
 | 
				
			||||||
		if(!touching && scrolling){
 | 
							clearTimeout(t)
 | 
				
			||||||
 | 
							t = setTimeout(function(){
 | 
				
			||||||
 | 
									//if(!window.touching){
 | 
				
			||||||
				v.trigger('scrollend')
 | 
									v.trigger('scrollend')
 | 
				
			||||||
		}
 | 
									//}
 | 
				
			||||||
		scrolling = false
 | 
					 | 
				
			||||||
			}, TIMEOUT)
 | 
								}, TIMEOUT)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$('.viewer')
 | 
						$('.viewer')
 | 
				
			||||||
		.on('scroll', function(evt){
 | 
							.on('scroll', function(evt){
 | 
				
			||||||
			scrolling = true
 | 
								//monitor_scroll()
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
		.on('touchstart mousedown', function(evt){
 | 
							.on('touchstart mousedown', function(evt){
 | 
				
			||||||
			touching = true
 | 
								//touching = true
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
		.on('touchend mouseup', function(evt){
 | 
							.on('touchend mouseup', function(evt){
 | 
				
			||||||
			touching = false
 | 
								//touching = false
 | 
				
			||||||
 | 
								setCurrentPage()
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		.on('scrollend', function(){
 | 
							.on('scrollend', function(){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user