Author: jpobst
Date: 2007-09-06 12:17:42 -0400 (Thu, 06 Sep 2007)
New Revision: 85428
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TrackBar.cs
Log:
2007-09-06 Jonathan Pobst <[EMAIL PROTECTED]>
* TrackBar.cs: Only call OnScroll if we actually changed the Value of
the TrackBar, not every mouse move. [Fixed bug #82718]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-06 16:07:31 UTC (rev 85427)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-09-06 16:17:42 UTC (rev 85428)
@@ -1,5 +1,10 @@
2007-09-06 Jonathan Pobst <[EMAIL PROTECTED]>
+ * TrackBar.cs: Only call OnScroll if we actually changed the Value of
+ the TrackBar, not every mouse move. [Fixed bug #82718]
+
+2007-09-06 Jonathan Pobst <[EMAIL PROTECTED]>
+
* ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
under 2.0 rendering. [Fixes bug #82657]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TrackBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TrackBar.cs
2007-09-06 16:07:31 UTC (rev 85427)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TrackBar.cs
2007-09-06 16:17:42 UTC (rev 85428)
@@ -768,8 +768,11 @@
/* Moving the thumb */
if (thumb_pressed) {
+ int old_value = Value;
Value =
ThemeEngine.Current.TrackBarValueFromMousePosition (e.X, e.Y, this);
- OnScroll (new EventArgs ());
+
+ if (Value != old_value)
+ OnScroll (EventArgs.Empty);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches