From e37b4ed2dad046de9d12dcef65ab1cc6abeb86bb Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Wed, 17 Apr 2024 20:11:49 +0200 Subject: [PATCH] Fix wrong cursor position for scrollbars --- P3D/Screens/NewOptionScreen.vb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/P3D/Screens/NewOptionScreen.vb b/P3D/Screens/NewOptionScreen.vb index 394c6d608..e04ee5d70 100644 --- a/P3D/Screens/NewOptionScreen.vb +++ b/P3D/Screens/NewOptionScreen.vb @@ -751,9 +751,11 @@ Public Class NewOptionScreen End If Next If ScrollControl IsNot Nothing Then - End If + _cursorDestPosition = New Vector2(cPosition.X + 332, cPosition.Y) + Else - _cursorDestPosition = cPosition + _cursorDestPosition = cPosition + End If End Sub Private Function GetButtonPosition(ByVal direction As String) As Vector2