Stop start function on (release)

Sorry to have to post a secondary thread…but i’ve had responses to the previous one and now a new problem exists.

Why am I having to multiple click my button to make this function work? On each release of the button ‘SUB’ moves that little bit more but I need the function to work in one go after just one click!!

Something is obviously working for it to move at all, I just dont understand why it’s moving in stages!!

[COLOR=#0000ff][COLOR=#0000ff][COLOR=#000000]scrollIt = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR][/COLOR]
[COLOR=#0000ff]if[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR][COLOR=#000000] [COLOR=#000000]{[/COLOR][/COLOR]
[COLOR=#0000ff]_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]SUB[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]_x[/COLOR][COLOR=#000000] += -[/COLOR][COLOR=#000080]30[/COLOR][COLOR=#000000];
[COLOR=#000000]}[/COLOR] [/COLOR][COLOR=#0000ff]else[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]if[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR][COLOR=#000000] [COLOR=#000000]{[/COLOR][/COLOR]
[COLOR=#0000ff]_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]page[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]_x[/COLOR][COLOR=#000000] += COLOR=#000000[/COLOR][COLOR=#000000]/[/COLOR][COLOR=#000080]8[/COLOR][COLOR=#000000]; [/COLOR][COLOR=#0000ff]_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]SUB[/COLOR][COLOR=#000000].[/COLOR][COLOR=#0000ff]_x[/COLOR][COLOR=#000000] += COLOR=#000000[/COLOR][COLOR=#000000] /[/COLOR][COLOR=#000080]2[/COLOR][COLOR=#000000];
[COLOR=#000000]}[/COLOR][/COLOR]
[COLOR=#000000]}[/COLOR][COLOR=#000000];[/COLOR][/COLOR][/COLOR]
[COLOR=#0000ff][COLOR=#0000ff][/COLOR][/COLOR]
[COLOR=#0000ff][COLOR=#0000ff]on[/COLOR][COLOR=#000000] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR][/COLOR]
[COLOR=#0000ff]_root[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000080]scrollIt[/COLOR]COLOR=#000000[/COLOR][/COLOR][COLOR=#000000];
[COLOR=#000000]}[/COLOR][/COLOR]
[COLOR=#000000][COLOR=#000000][/COLOR][/COLOR]
[COLOR=#000000][COLOR=#000000]All help i’m getting is much appreciated, i’ve tried ringing people but you guys are easily the best at helping out in times of need.[/COLOR][/COLOR]