Karsten Hopp c13ccf
To: vim-dev@vim.org
Karsten Hopp c13ccf
Subject: Patch 7.0.065 (extra)
Karsten Hopp c13ccf
Fcc: outbox
Karsten Hopp c13ccf
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c13ccf
Mime-Version: 1.0
Karsten Hopp c13ccf
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp c13ccf
Content-Transfer-Encoding: 8bit
Karsten Hopp c13ccf
------------
Karsten Hopp c13ccf
Karsten Hopp c13ccf
Patch 7.0.065 (extra)
Karsten Hopp c13ccf
Problem:    Mac: left-right movement of the scrollwheel causes up-down
Karsten Hopp c13ccf
	    scrolling.
Karsten Hopp c13ccf
Solution:   Ignore mouse wheel events that are not up-down. (Nicolas Weber)
Karsten Hopp c13ccf
Files:	    src/gui_mac.c
Karsten Hopp c13ccf
Karsten Hopp c13ccf
Karsten Hopp c13ccf
*** ../vim-7.0.064/src/gui_mac.c	Wed May  3 00:03:26 2006
Karsten Hopp c13ccf
--- src/gui_mac.c	Tue Aug 22 13:41:12 2006
Karsten Hopp c13ccf
***************
Karsten Hopp c13ccf
*** 2480,2485 ****
Karsten Hopp c13ccf
--- 2480,2491 ----
Karsten Hopp c13ccf
      UInt32	mod;
Karsten Hopp c13ccf
      SInt32	delta;
Karsten Hopp c13ccf
      int_u	vim_mod;
Karsten Hopp c13ccf
+     EventMouseWheelAxis axis;
Karsten Hopp c13ccf
+ 
Karsten Hopp c13ccf
+     if (noErr == GetEventParameter(theEvent, kEventParamMouseWheelAxis,
Karsten Hopp c13ccf
+ 			  typeMouseWheelAxis, NULL, sizeof(axis), NULL, &axis)
Karsten Hopp c13ccf
+ 	    && axis != kEventMouseWheelAxisY)
Karsten Hopp c13ccf
+ 	goto bail; /* Vim only does up-down scrolling */
Karsten Hopp c13ccf
  
Karsten Hopp c13ccf
      if (noErr != GetEventParameter(theEvent, kEventParamMouseWheelDelta,
Karsten Hopp c13ccf
  			      typeSInt32, NULL, sizeof(SInt32), NULL, &delta))
Karsten Hopp c13ccf
*** ../vim-7.0.064/src/version.c	Tue Aug 22 19:58:22 2006
Karsten Hopp c13ccf
--- src/version.c	Tue Aug 22 21:38:07 2006
Karsten Hopp c13ccf
***************
Karsten Hopp c13ccf
*** 668,669 ****
Karsten Hopp c13ccf
--- 668,671 ----
Karsten Hopp c13ccf
  {   /* Add new patch number below this line */
Karsten Hopp c13ccf
+ /**/
Karsten Hopp c13ccf
+     65,
Karsten Hopp c13ccf
  /**/
Karsten Hopp c13ccf
Karsten Hopp c13ccf
-- 
Karsten Hopp c13ccf
Spam seems to be something useful to novices.  Later you realize that
Karsten Hopp c13ccf
it's a bunch of indigestable junk that only clogs your system.
Karsten Hopp c13ccf
Applies to both the food and the e-mail!
Karsten Hopp c13ccf
Karsten Hopp c13ccf
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c13ccf
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c13ccf
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp c13ccf
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///