Fix: no parallax scrolling in FF
Fixed problem with parallax background not working under FF
This commit is contained in:
		| @@ -1510,14 +1510,11 @@ var Reveal = (function(){ | |||||||
| 			var horizontalSlideCount = horizontalSlides.length; | 			var horizontalSlideCount = horizontalSlides.length; | ||||||
| 			var horizontalOffset = -(bgWidth - slideWidth)/(horizontalSlideCount-1) * h; | 			var horizontalOffset = -(bgWidth - slideWidth)/(horizontalSlideCount-1) * h; | ||||||
| 		 | 		 | ||||||
| 			dom.wrapper.style.backgroundPositionX = horizontalOffset + 'px'; |  | ||||||
| 		 |  | ||||||
| 		 |  | ||||||
| 			var slideHeight = parseInt(dom.wrapper.offsetHeight, 10); | 			var slideHeight = parseInt(dom.wrapper.offsetHeight, 10); | ||||||
| 			var verticalSlideCount = currentVerticalSlides.length; | 			var verticalSlideCount = currentVerticalSlides.length; | ||||||
| 			var verticalOffset = verticalSlideCount > 0 ? -(bgHeight - slideHeight)/(verticalSlideCount-1) * v : 0; | 			var verticalOffset = verticalSlideCount > 0 ? -(bgHeight - slideHeight)/(verticalSlideCount-1) * v : 0; | ||||||
| 		 | 		 | ||||||
| 			dom.wrapper.style.backgroundPositionY = verticalOffset + 'px'; | 			dom.wrapper.style.backgroundPosition = horizontalOffset + 'px ' + verticalOffset + 'px'; | ||||||
| 		} | 		} | ||||||
| 				 | 				 | ||||||
| 		//////////////////////////////////// | 		//////////////////////////////////// | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								js/reveal.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								js/reveal.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user