mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 08:56:01 +08:00 
			
		
		
		
	fix!: Game.mouseCursor and Game.overlays can now be safely set during onLoad (#1498)
This commit is contained in:
		| @ -46,12 +46,12 @@ class MouseCursorExample extends FlameGame with MouseMovementDetector { | ||||
|       if (hovering) { | ||||
|         if (!onTarget) { | ||||
|           //Entered | ||||
|           mouseCursor.value = SystemMouseCursors.grab; | ||||
|           mouseCursor = SystemMouseCursors.grab; | ||||
|         } | ||||
|       } else { | ||||
|         if (onTarget) { | ||||
|           // Exited | ||||
|           mouseCursor.value = SystemMouseCursors.move; | ||||
|           mouseCursor = SystemMouseCursors.move; | ||||
|         } | ||||
|       } | ||||
|       onTarget = hovering; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Pasha Stetsenko
					Pasha Stetsenko