Pārlūkot izejas kodu

2008-05-28 Carlos Alberto Cortez <[email protected]>

	* ScrollBar.cs: Scrollbars should only react to left-clicks, not right
	or middle ones.
	Fixes part of #393908.


svn path=/trunk/mcs/; revision=104325
Carlos Alberto Cortez 17 gadi atpakaļ
vecāks
revīzija
ef97477e80

+ 6 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,9 @@
+2008-05-28  Carlos Alberto Cortez <[email protected]>
+
+	* ScrollBar.cs: Scrollbars should only react to left-clicks, not right
+	or middle ones.
+	Fixes part of #393908.
+
 2008-05-28  Jonathan Pobst  <[email protected]>
 
 	* ToolStripDrowDown.cs: When using the Show () methods that have a

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs

@@ -1066,7 +1066,7 @@ namespace System.Windows.Forms
     		{
 			ClearDirty ();
 
-			if (Enabled == false)
+			if (Enabled == false || (e.Button & MouseButtons.Left) == 0)
 				return;
 
     			if (firstbutton_state != ButtonState.Inactive && first_arrow_area.Contains (e.X, e.Y)) {