View Single Post
  #4  
Old 03-11-2009, 11:19 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
If you're talking about the mouse wheel scrolling too many times upon on tick, you can do this to fix:
PHP Code:
function GuiControl.onMouseWheelDown() {
  
this.mouseticks ++;
  if (!(
this.mouseticks 2))
    return;
  
dostuff;

If you mean that the scroll bar is scrolling too fast, use

PHP Code:
function GuiControl.onScrolled(newxnewydeltaxdeltay) {
  
GuiScrollCtrl.scrollto(intint);

and create your own scrolling functionality.

I don't think you can *disable* the default scrolling, which has been a problem for me quite a few times, but if you want to scroll to decimal points, then scrollto should accomplish it fine.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote