I'm not sure if this is what you want but if I declare
in class globals and modify to the following code I get change of the wheel from zero to max by scrolling left, max to zero when scrolling right.
The flag should eliminate continuous jump between the states.
Try it in the HAnalogWheel class.
Private Sub sv_ScrollChanged(Position As Int)
newposition = Position
If Position = 100*WWidth/104 AND flag <> 1 Then
sv.FullScroll(False)
flag = -1
Else If Position = 0 AND flag <> -1 Then
sv.FullScroll(True)
flag = 1
Else
flag = 0
End If
tmr.Enabled = True
End Sub
In the vertical it will probably be the same after replacing WWidth with WHeight