CONST true
= -1, false
= 0 refresh:
m$ = "Release to refresh"
isScrolling = false: scrollLock = true
mousedown = true
mousedown = false
IF willRefresh
THEN willRefresh
= false:
GOTO refresh
'y = y - (y MOD _FONTHEIGHT)
isScrolling = true
scrollLock = false
scrollLock = false
scrollLock = true
isScrolling = false
scrollLock = true
CIRCLE (scrollGrabX
, scrollGrabY
), i
* 2, c~&
y
= y
+ (scrollGrabY
- _MOUSEY) / 2 LINE (scrollGrabX
- i
/ 2, scrollGrabY
- 20 - (10 - i
))-STEP(i
, 0), _RGB32(255, 255, 255) y
= y
- (_MOUSEY - scrollGrabY
) / 2 LINE (scrollGrabX
- i
/ 2, scrollGrabY
+ 20 + (10 - i
))-STEP(i
, 0), _RGB32(255, 255, 255) LINE (scrollGrabX
- i
/ 2, scrollGrabY
- 20 - (10 - i
))-STEP(i
, 0), _RGB32(255, 255, 255) LINE (scrollGrabX
- i
/ 2, scrollGrabY
+ 20 + (10 - i
))-STEP(i
, 0), _RGB32(255, 255, 255)
willRefresh = false
IF mousedown
THEN willRefresh
= true
w = w - 10
s = 0
FUNCTION map!
(value!
, minRange!
, maxRange!
, newMinRange!
, newMaxRange!
) map! = ((value! - minRange!) / (maxRange! - minRange!)) * (newMaxRange! - newMinRange!) + newMinRange!