onBeforeAutoScroll

fires before autoscrolling has started

boolean onBeforeAutoScroll(object position);
positionobjectthe current cursor position
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