mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	tweeked touch controls and disabled pinching...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6e3ce3806c
								
							
						
					
					
						commit
						6756b9d789
					
				| @ -1,5 +1,6 @@ | |||||||
| Priority work | Priority work | ||||||
| 	[_] 70% Preview II | 	[_] 67% Preview II | ||||||
|  | 		[_] BUG: moving the last image from a ribbon up will make the screen jump... | ||||||
| 		[_] do something sensible when no images are loaded... | 		[_] do something sensible when no images are loaded... | ||||||
| 		| in the simplest case, just write something in the middle of  | 		| in the simplest case, just write something in the middle of  | ||||||
| 		| the background... | 		| the background... | ||||||
|  | |||||||
| @ -153,7 +153,7 @@ $(document).ready(setup); | |||||||
| 	</div> | 	</div> | ||||||
| 
 | 
 | ||||||
| 	<!-- overlay --> | 	<!-- overlay --> | ||||||
| 	<div class="overlay"> | 	<div class="overlay noSwipe"> | ||||||
| 		<div class="background"> | 		<div class="background"> | ||||||
| 		</div> | 		</div> | ||||||
| 		<div class="content"> | 		<div class="content"> | ||||||
|  | |||||||
| @ -1231,18 +1231,22 @@ function setupEvents(){ | |||||||
| 		.swipe({ | 		.swipe({ | ||||||
| 			swipeLeft: ImageGrid.nextImage, | 			swipeLeft: ImageGrid.nextImage, | ||||||
| 			swipeRight: ImageGrid.prevImage, | 			swipeRight: ImageGrid.prevImage, | ||||||
|  | 
 | ||||||
| 			swipeUp: ImageGrid.shiftImageUp, | 			swipeUp: ImageGrid.shiftImageUp, | ||||||
| 			swipeDown: ImageGrid.shiftImageDown, | 			swipeDown: ImageGrid.shiftImageDown, | ||||||
| 			 | 			 | ||||||
| 			// XXX do gradual zooming...
 | 			// XXX do gradual zooming...
 | ||||||
| 			pinchIn: ImageGrid.scaleContainerDown, | 			//pinchIn: ImageGrid.scaleContainerDown,
 | ||||||
| 			pinchOut: ImageGrid.scaleContainerUp | 			//pinchOut: ImageGrid.scaleContainerUp,
 | ||||||
|  | 
 | ||||||
|  | 			fingers: 'all' | ||||||
| 		}) | 		}) | ||||||
|  | 
 | ||||||
| 	// dragging...
 | 	// dragging...
 | ||||||
| 	// XXX make this work seamlessly with touchSwipe...
 | 	// XXX make this work seamlessly with touchSwipe...
 | ||||||
| 	// XXX cancel clicks while dragging...
 | 	// XXX cancel clicks while dragging...
 | ||||||
| 	// XXX this does not work on android...
 | 	// XXX this does not work on android...
 | ||||||
| 	$('.field').draggable() | 	//$('.field').draggable()
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user