f-spot r3851 - trunk/src/Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3851 - trunk/src/Widgets
- Date: Mon, 28 Apr 2008 09:12:07 +0100 (BST)
Author: sdelcroix
Date: Mon Apr 28 08:12:06 2008
New Revision: 3851
URL: http://svn.gnome.org/viewvc/f-spot?rev=3851&view=rev
Log:
proper fix for the strip lock
Modified:
trunk/src/Widgets/Filmstrip.cs
Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs (original)
+++ trunk/src/Widgets/Filmstrip.cs Mon Apr 28 08:12:06 2008
@@ -629,6 +629,9 @@
float dv = acc * interval / 1000f;
float halfway_distance = 0.5f * (speed + dv) * (speed + dv) / acc;
float distance = Math.Abs (filmstrip.Position - target);
+ if (distance == 0) {
+ return false;
+ }
if (Math.Abs (speed) > 30 && distance > halfway_distance) { //HYPERSPACE JUMP
handler (target + (float)Math.Sign (filmstrip.Position - target) * halfway_distance);
@@ -644,7 +647,7 @@
float increment = speed * interval / 1000f;
- if (distance == 0 || Math.Abs (distance - increment) < 0.01) {
+ if (Math.Abs (distance - increment) < 0.01) {
handler (target);
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]