mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-11-03 21:40:17 +00:00 
			
		
		
		
	taming iscroll...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6af37f65c1
								
							
						
					
					
						commit
						bb26628868
					
				@ -130,18 +130,25 @@ $(document).ready(function(){
 | 
			
		||||
		function(k){console.log(k)}))
 | 
			
		||||
 | 
			
		||||
	window.myScroll = new iScroll('viewer', {
 | 
			
		||||
		//snap: true,
 | 
			
		||||
		vScroll: false,
 | 
			
		||||
		// XXX we do not actually need this, just a couple fixed zoom levels...
 | 
			
		||||
		zoom: true,
 | 
			
		||||
		zoomMin: 0.1,
 | 
			
		||||
		snap: '.page',
 | 
			
		||||
		momentum: false,
 | 
			
		||||
		hScrollbar: false,
 | 
			
		||||
		chechDOMChanges: true,
 | 
			
		||||
		/*
 | 
			
		||||
		onScrollEnd: function () {
 | 
			
		||||
			var n = getPageNumber()
 | 
			
		||||
			var page = $($('.page')[n])
 | 
			
		||||
			$('.current.page').removeClass('current')
 | 
			
		||||
			page.addClass('current')
 | 
			
		||||
			// XXX need to calc the propper offset...
 | 
			
		||||
			myScroll.scrollToElement(page.offset(), 40)
 | 
			
		||||
			//myScroll.scrollToElement(page[0], 40)
 | 
			
		||||
			//myScroll.scrollToElement(page[0], 40)
 | 
			
		||||
		}
 | 
			
		||||
		*/
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user