mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 12:00:11 +00:00 
			
		
		
		
	working on multitouch support...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									65796d8150
								
							
						
					
					
						commit
						0601f07bc5
					
				
							
								
								
									
										10
									
								
								lib/jli.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								lib/jli.js
									
									
									
									
									
								
							| @ -488,7 +488,8 @@ function makeKeyboardHandler(keybindings, unhandled){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // XXX handle multiple fingers...
 | ||||
| // XXX handle multiple touches...
 | ||||
| // 		- timeout on lift to count fingers...
 | ||||
| // XXX setup basic styles for the contained element...
 | ||||
| // XXX revise...
 | ||||
| // XXX test on other devices...
 | ||||
| @ -516,6 +517,11 @@ function makeScrollHandler(root, config){ | ||||
| 	var dt | ||||
| 
 | ||||
| 	function startMoveHandler(evt, callback){ | ||||
| 		// if we are already touching then just skip on this...
 | ||||
| 		if(touches > 0){ | ||||
| 			return false | ||||
| 		} | ||||
| 		touches = touch ? event.touches.length : 1 | ||||
| 		prev_t = event.timeStamp || Date.now(); | ||||
| 		if(scroller.options.autoCancelEvents){ | ||||
| 			bounds = { | ||||
| @ -553,7 +559,7 @@ function makeScrollHandler(root, config){ | ||||
| 		// get the user coords...
 | ||||
| 		x = touch ? event.touches[0].pageX : evt.clientX | ||||
| 		y = touch ? event.touches[0].pageY : evt.clientY | ||||
| 		touches = touch ? event.touches.length : 0 | ||||
| 		touches = touch ? event.touches.length : 1 | ||||
| 
 | ||||
| 		// XXX needs testing...
 | ||||
| 		// check scroll bounds...
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user