Unity 2019.1.0f2
Input System 1.0.2
using UnityEngine; using UnityEngine.InputSystem; public class TestScroll : MonoBehaviour { void Update() { Debug.Log(Mouse.current.scroll.ReadValue()); } }
Also in the documentation for the Input System I found this:
Because of this feature Scroll Rect starts to scroll simply because I move the mouse pointer over it.
How can this be avoided and why is this happening?
It turns out this is a Unity bug: topic