Author: pbartok
Date: 2006-01-13 13:38:19 -0500 (Fri, 13 Jan 2006)
New Revision: 55537
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
Log:
- Shouldn't put fixme notes in if it doesn't need fixing. Also simplified a bit
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2006-01-13 18:35:12 UTC (rev 55536)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
2006-01-13 18:38:19 UTC (rev 55537)
@@ -1353,23 +1353,15 @@
}
private void MouseWheelHandler(object sender, MouseEventArgs e)
{
- int scroll_to;
-
if (vbar == null || !vbar.Visible) {
return;
}
if (e.Delta < 0) {
- // Scrolling down
"SystemInformation.MouseWheelScrollLines"
- // FIXME - put logic here
- scroll_to = Math.Min(vbar.Value +
SystemInformation.MouseWheelScrollLines, vbar.Maximum);
+ vbar.Value = Math.Min(vbar.Value +
SystemInformation.MouseWheelScrollLines, vbar.Maximum);
} else {
- // Scrolling up
"SystemInformation.MouseWheelScrollLines"
- // FIXME - put logic here
- scroll_to = Math.Max(0, vbar.Value -
SystemInformation.MouseWheelScrollLines);
+ vbar.Value = Math.Max(0, vbar.Value -
SystemInformation.MouseWheelScrollLines);
}
-
- vbar.Value = scroll_to;
}
private void FontChangedHandler (object sender, EventArgs e)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches