mirror of
				https://github.com/RGBCube/rgbcube.github.io
				synced 2025-10-31 15:02:45 +00:00 
			
		
		
		
	Chrome 68 fixes
This commit is contained in:
		
							parent
							
								
									d2c919227a
								
							
						
					
					
						commit
						17bbad6a85
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		
							
								
								
									
										2
									
								
								404.html
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								404.html
									
										
									
									
									
								
							|  | @ -95,4 +95,4 @@ | |||
|   <script src="cube.js"></script> | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
| </html> | ||||
|  |  | |||
							
								
								
									
										2
									
								
								cube.css
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								cube.css
									
										
									
									
									
								
							|  | @ -1,7 +1,7 @@ | |||
| @font-face { | ||||
|   font-family: "Bai Jamjuree"; | ||||
|   font-weight: 700; | ||||
|   src: url(BaiJamjuree700.woff2) format(woff2); | ||||
|   src: url("BaiJamjuree700.woff2") format("woff2"); | ||||
| } | ||||
| 
 | ||||
| body, | ||||
|  |  | |||
							
								
								
									
										4
									
								
								cube.js
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								cube.js
									
										
									
									
									
								
							|  | @ -111,7 +111,7 @@ const orientation = { | |||
| { | ||||
|   const mouse = { | ||||
|     down: false, | ||||
|     lastMove: -10_000, | ||||
|     lastMove: -10000, | ||||
|     previous: null, | ||||
|   }; | ||||
| 
 | ||||
|  | @ -207,7 +207,7 @@ const orientation = { | |||
|         velocity.z = 0; | ||||
|       } | ||||
| 
 | ||||
|       if (window.performance.now() - mouse.lastMove > 10_000) { | ||||
|       if (window.performance.now() - mouse.lastMove > 10000) { | ||||
|         const impulse = new Vec3(1, 1, -1); | ||||
|         velocity = Vec3.sum(impulse.scale(effectiveDelta * 3), velocity); | ||||
|       } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 RGBCube
						RGBCube