#1 original report ...
Zaflis:
Scrollbars in GUI dialogs behave weird, where when i drag and move the knob it's not centering the knob to mouse. Instead the scrollbar position is updated by exact position of mouse on the scrollbar.
Basically currently Scrollable area = Scrollbar.Top .. Scrollbar.Top+Scrollbar.Height
Scrollable area height = Scrollbar.Height
Suggestion for the area: Scrollbar.Top+Scrollknob.Height/2 .. Scrollbar.Top+Scrollbar.Height-Scrollknob.Height/2
Scrollable area height = Scrollbar.Height-Scrollknob.Height
#2
Zaflis:
Try dragging the scrollbar with mouse. Compare for example to the web browser you are using to read this page, and then any starmade ingame dialog with scrollbar, it should be plain obvious.
Scrollbar in most applications behaves kind of like "empty pipe that is attached to thick rope". Imagine that you grab it with your hand from 1 point and then drag it to some direction, same way as you drag it with a cursor.
But in starmade it's very different. You don't actually get a grip of the scrollbar, you point to it where it is to go and it goes.
Sounds silly explain but it's only a slight mathematical difference that makes it behave wonky, and yeah you might call it a bug. It's something that would a trivial issue to fix if you just understand it. It wouldn't make much of a difference if i captured a video of dragging a scroll bar either, it's something you just have to try yourself to feel the difference. Pay special attention to the top and bottom end points when scrolling.
Basically, with scrollbar on any other software i don't have to pinpoint cursor exactly 1 pixel away from up arrow in order to scroll all the way up. If the scrollbar handle moves at same speed as my cursor, the handle's top end reaches the top before the cursor.
#3 Andy:
Hm, yes thats a really trivial one, but its a difference to most other sliders I tried to compare it with. =)
This shows the 'problem'
We always assume the 'center' of the slider for the mouse reference, not the spot where you 'grabbed' it.
#3.1 Andy:
Oh, read the posts again, maybe this is another different bug I found... xD
So the other statement seems to point to the difference between cursor position and scroll area position.
So when seeing line 1-10 of a 20 line document, moving the cursor to line 9 or 10 will move the scrollbutton? (even when the 'scrollarea' did not move at all?
#3.2 Andy
Okay, compared all the sliders around a bit, and also the starmade ones.
Seems like the most noticable effect is:
Sliders in starmade are fixed in size.
So, to word it:
Starmade:
200pixel lenght scroll bar (viewport)
400 pixel long list to scroll
20 pixel wide slider (fixed size)
Others:
200pixel lenght scroll bar (viewport)
400 pixel long list to scroll
100 pixel wide slider (covering 50% of the scrollbar)
(Numbers fictional)
So the 'slider' represents the current viewport of the total scrollarea in size, while starmade uses fixed size.