mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 03:50:16 +00:00 
			
		
		
		
	more cleanup and refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									f417236a72
								
							
						
					
					
						commit
						b4a16ed0c4
					
				| @ -358,6 +358,7 @@ function makeScrollHandler(root, config){ | |||||||
| 					.off('touchstart', startMoveHandler) | 					.off('touchstart', startMoveHandler) | ||||||
| 					.off('touchmove', moveHandler)  | 					.off('touchmove', moveHandler)  | ||||||
| 					.off('touchend', endMoveHandler) | 					.off('touchend', endMoveHandler) | ||||||
|  | 					.off('touchcancel', endMoveHandler) | ||||||
| 			} else { | 			} else { | ||||||
| 				root | 				root | ||||||
| 					.off('mousedown', startMoveHandler)  | 					.off('mousedown', startMoveHandler)  | ||||||
| @ -405,7 +406,8 @@ function makeScrollHandler(root, config){ | |||||||
| // 		this differs from what postScrollCallback actually gets in the 
 | // 		this differs from what postScrollCallback actually gets in the 
 | ||||||
| // 		same field when it recieves the object.
 | // 		same field when it recieves the object.
 | ||||||
| // XXX add generic snap
 | // XXX add generic snap
 | ||||||
| // XXX add generic innertial scroll
 | // XXX add generic innertial scroll 
 | ||||||
|  | // 		...see jli.js/animateElementTo for a rough implementation
 | ||||||
| // XXX test multiple touches...
 | // XXX test multiple touches...
 | ||||||
| function postScrollCallback(data){ | function postScrollCallback(data){ | ||||||
| 	var scroller = data.scroller | 	var scroller = data.scroller | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user