banshee r3650 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Widgets
- From: scottp svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3650 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Widgets
- Date: Thu, 3 Apr 2008 02:06:20 +0100 (BST)
Author: scottp
Date: Thu Apr 3 02:06:19 2008
New Revision: 3650
URL: http://svn.gnome.org/viewvc/banshee?rev=3650&view=rev
Log:
* src/Libraries/Hyena.Gui/Hyena.Widgets/SmoothScrolledWindow.cs:
Removed max velocity limit.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/SmoothScrolledWindow.cs
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/SmoothScrolledWindow.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/SmoothScrolledWindow.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/SmoothScrolledWindow.cs Thu Apr 3 02:06:19 2008
@@ -43,7 +43,7 @@
private double Accelerate (double velocity)
{
- return Math.Min (AccelerateCore (velocity), MaxVelocity);
+ return AccelerateCore (velocity);
}
private double Decelerate (double velocity)
@@ -87,7 +87,7 @@
int sign = Math.Sign (delta);
delta = Math.Abs (delta);
- velocity = TimeToAccelerate (delta) ? Accelerate (velocity) : Decelerate (velocity);
+ velocity = TimeToDecelerate (delta) ? Decelerate (velocity) : Accelerate (velocity);
value += Math.Max (velocity, 0.5) * sign;
ignore_value_changed = true;
@@ -97,7 +97,7 @@
return true;
}
- private bool TimeToAccelerate (double delta)
+ private bool TimeToDecelerate (double delta)
{
double hypothetical = delta;
double v = Accelerate (velocity);
@@ -105,7 +105,7 @@
hypothetical -= v;
v = Decelerate (v);
}
- return hypothetical > 0;
+ return hypothetical <= 0;
}
protected override bool OnScrollEvent (Gdk.EventScroll evnt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]