summarylogtreecommitdiffstats
path: root/linux-get-scroll-info.patch
blob: c9b5659695f6f5be99a77072791b9dbc137ae593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/ReClass.NET/UI/ScrollableCustomControl.cs b/ReClass.NET/UI/ScrollableCustomControl.cs
index 4de6a4d..e5c05b7 100644
--- a/ReClass.NET/UI/ScrollableCustomControl.cs
+++ b/ReClass.NET/UI/ScrollableCustomControl.cs
@@ -2,6 +2,7 @@
 using System.Diagnostics.Contracts;
 using System.Runtime.InteropServices;
 using System.Windows.Forms;
+using ReClassNET.Native;
 
 namespace ReClassNET.UI
 {
@@ -213,7 +214,7 @@ namespace ReClassNET.UI
 				case ScrollEventType.ThumbTrack:
 				case ScrollEventType.ThumbPosition:
 					
-					if (GetScrollInfo(new HandleRef(this, Handle), bar, scrollinfo))
+					if (!NativeMethods.IsUnix() && GetScrollInfo(new HandleRef(this, Handle), bar, scrollinfo))
 					{
 						SetValue(type, scrollProperties, scrollinfo.nTrackPos);
 					}