0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.0-065

This commit is contained in:
Bram Moolenaar
2006-08-22 19:36:17 +00:00
parent d7fd0c4a37
commit 621e2fdb5f
2 changed files with 8 additions and 0 deletions

View File

@@ -2480,6 +2480,12 @@ gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
UInt32 mod;
SInt32 delta;
int_u vim_mod;
EventMouseWheelAxis axis;
if (noErr == GetEventParameter(theEvent, kEventParamMouseWheelAxis,
typeMouseWheelAxis, NULL, sizeof(axis), NULL, &axis)
&& axis != kEventMouseWheelAxisY)
goto bail; /* Vim only does up-down scrolling */
if (noErr != GetEventParameter(theEvent, kEventParamMouseWheelDelta,
typeSInt32, NULL, sizeof(SInt32), NULL, &delta))