Properties Methods Events Direct Link

Class Ext.dd.ScrollManager

Package:Ext.dd
Defined In:ScrollManager.js
Class:ScrollManager
Extends:Object

Provides automatic scrolling of overflow regions in the page during drag operations.

The ScrollManager configs will be used as the defaults for any scroll container registered with it, but you can also override most of the configs per scroll container by adding a ddScrollConfig object to the target element that contains these properties: hthresh, vthresh, increment and frequency. Example usage:

var el = Ext.get('scroll-ct');
el.ddScrollConfig = {
    vthresh: 50,
    hthresh: -1,
    frequency: 100,
    increment: 200
};
Ext.dd.ScrollManager.register(el);
Note: This class uses "Point Mode" and is untested in "Intersect Mode".

This class is a singleton and cannot be created directly.

Public Properties

PropertyDefined By
 animDuration : Number
The animation duration in seconds - MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)
ScrollManager
 animate : Boolean
True to animate the scroll (defaults to true)
ScrollManager
 frequency : Number
The frequency of scrolls in milliseconds (defaults to 500)
ScrollManager
 increment : Number
The number of pixels to scroll in each scroll increment (defaults to 50)
ScrollManager

Public Methods

MethodDefined By

Public Events

This class has no public events.