Why is WheelDelta = 120?

前端 未结 4 1228
無奈伤痛
無奈伤痛 2021-02-13 21:09

I\'m working with mouse events, specifically OnMouseWheel. Many code samples refer to distance the view changes (or zoom f.i. in 3D application) as Distance =

4条回答
  •  感动是毒
    2021-02-13 21:39

    WHEEL_DELTA is not fixed anymore to 120. As I understand it this constant was chosen to allow for finer resolutions in the future, which obviously is NOW.

    See this article from MSDN

提交回复
热议问题