onBeforeAutoScroll

fires before autoscrolling has started

boolean onBeforeAutoScroll(object position){ ... };

Parameters

positionobjectthe current cursor position

Returns

booleanreturning false will prevent autoscrolling

Example

$$("datatable1").attachEvent("onBeforeAutoScroll", function(position){
    // some code
});

Details

The position object contains two properties:

  • x - (number) the horizontal cursor position
  • y - (number) the vertical cursor position
Back to top