f-spot r3778 - trunk/src/Widgets



Author: sdelcroix
Date: Fri Mar 21 15:36:13 2008
New Revision: 3778
URL: http://svn.gnome.org/viewvc/f-spot?rev=3778&view=rev

Log:
use Shift to speed up scrolling on the filmstrip

Modified:
   trunk/src/Widgets/Filmstrip.cs

Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs	(original)
+++ trunk/src/Widgets/Filmstrip.cs	Fri Mar 21 15:36:13 2008
@@ -405,14 +405,18 @@
 
 		protected override bool OnScrollEvent (EventScroll args)
 		{
+			float shift = .5f;
+			if ((args.State & Gdk.ModifierType.ShiftMask) > 0)
+				shift = 5f;
+
 			switch (args.Direction) {
 			case ScrollDirection.Up:
 			case ScrollDirection.Right:
-				Position -= 0.5f;
+				Position -= shift;
 				return true;
 			case Gdk.ScrollDirection.Down:
 			case Gdk.ScrollDirection.Left:
-				Position += 0.5f;
+				Position += shift;
 				return true;
 			}
 			return false;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]