lesnodrum.blogg.se

Mouse wheel zooming instead of scrolling
Mouse wheel zooming instead of scrolling




mouse wheel zooming instead of scrolling

You can see the result of this in the zmouse.h header file buried in your SDK. Therefore, the hardware team had to invent their own mechanism for mouse wheel messages, with the understanding that operating system support for it wouldn’t arrive until the next major release of Windows (which turned out to be Windows 98 and Windows NT 4.0). This was not synchronized with an operating system release, and Windows Update wasn’t a thing yet, not that anybody cared because Internet access was not widespread, and those who did were using mostly dial-up. The historical context is that the mouse wheel in Windows was introduced by the Microsoft Hardware team in 1996. (Or is it the other way? I can never remember.) In practice, though, people preferred to use the mouse wheel to scroll, and zooming got relegated to a secondary feature activated by holding the Ctrl key while turning the wheel.Īnd it’s the Ctrl key that is the key that unlocks the puzzle.

mouse wheel zooming instead of scrolling

Spin the wheel forward to zoom in spin it backward to zoom out.

mouse wheel zooming instead of scrolling

The original intent of the mouse wheel was to control zooming. The mouse wheel turned into one of those features whose primary use is not the original intended use. I don’t know if there’s a good reason, but there’s a reason. Douglas asks, “Is there a good reason that mouse wheel messages are sent to the focused window instead of the window under the mouse?”






Mouse wheel zooming instead of scrolling