You can accomplish it like so..
PHP Code:
// In your GuiScrollCtrl put in a couple variables..
this.disabled = true;
this.lastspos = {0,0};
// Then have the onScrolled function for that Ctrl
function yourScrollObj.onScrolled() {
temp.lastpos = yourScrollObj.lastspos[0] SPC yourScrollObj.lastspos[1];
if (yourScrollObj.scrollpos == lastpos) return; // To prevent unneeded changes.
if (yourScrollObj.disabled) {
temp.spos = yourScrollObj.lastspos; // Scroll's Last Scroll Position
yourScrollObj.scrollto(spos[0], spos[1]);
}
else yourScrollObj.lastspos = yourScrollObj.scrollpos.tokenize();
}
I'm sure you could implement a generic event for it using catchevent and whatnot
Edit: Added a statement to prevent unneeded looping.