Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 8870e4c

Browse files
Last 2018 fix
1 parent 55ee3bf commit 8870e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Runtime/Scripts/Utilities/UIExtensionsInputManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ public static Vector3 MouseScrollDelta
281281
{
282282
get
283283
{
284-
#if ENABLE_LEGACY_INPUT_MANAGER
285-
return Input.mouseScrollDelta;
286-
#else
284+
#if UNITY_2019_OR_NEWER && !ENABLE_LEGACY_INPUT_MANAGER
287285
return Mouse.current.position.ReadValue();
286+
#else
287+
return Input.mouseScrollDelta;
288288
#endif
289289
}
290290
}

0 commit comments

Comments
 (0)