mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +00:00 
			
		
		
		
	more digging...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									33f4c6934d
								
							
						
					
					
						commit
						74c0693903
					
				| @ -118,16 +118,9 @@ $(document).ready(function(){ | |||||||
| 			togglePageDragging('on') | 			togglePageDragging('on') | ||||||
| 		}) | 		}) | ||||||
| 
 | 
 | ||||||
| 		.on('mousemove touchmove', function(evt){ | 		.on('touchmove', function(evt){ | ||||||
| 			//var t = evt.timeStamp || Date.now(); |  | ||||||
| 			evt.preventDefault() | 			evt.preventDefault() | ||||||
| 			console.log(evt.touches) | 			var pos_x = evt.touches[0].pointX | ||||||
| 			if(evt.touches != null && evt.touches.length > 0){ |  | ||||||
| 				console.log('touching!!!') |  | ||||||
| 				var pos_x = evt.touches[0].pointX |  | ||||||
| 			} else { |  | ||||||
| 				var pos_x = evt.clientX |  | ||||||
| 			} |  | ||||||
| 
 | 
 | ||||||
| 			if(_x == null){ | 			if(_x == null){ | ||||||
| 				_x = pos_x | 				_x = pos_x | ||||||
| @ -140,6 +133,24 @@ $(document).ready(function(){ | |||||||
| 			} | 			} | ||||||
| 			_x = x | 			_x = x | ||||||
| 		}) | 		}) | ||||||
|  | 		/* | ||||||
|  | 		.on('mousemove', function(evt){ | ||||||
|  | 			//var t = evt.timeStamp || Date.now(); | ||||||
|  | 			evt.preventDefault() | ||||||
|  | 			var pos_x = evt.clientX | ||||||
|  | 
 | ||||||
|  | 			if(_x == null){ | ||||||
|  | 				_x = pos_x | ||||||
|  | 			} | ||||||
|  | 			var x = pos_x | ||||||
|  | 			//console.log(pos_x) | ||||||
|  | 			if(scrolling){ | ||||||
|  | 				var s = getMagazineShift() | ||||||
|  | 				shiftMagazineTo(s + (x - _x)) | ||||||
|  | 			} | ||||||
|  | 			_x = x | ||||||
|  | 		}) | ||||||
|  | 		*/ | ||||||
| 
 | 
 | ||||||
| 		.on('mouseup touchend', function(){ | 		.on('mouseup touchend', function(){ | ||||||
| 			logger.log('[touchend]') | 			logger.log('[touchend]') | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user