Class Ext.dd.ScrollManager
Provides automatic scrolling of overflow regions in the page during drag operations.
Note: This class uses "Point Mode" and is untested in "Intersect Mode".
This class is a singleton and cannot be created directly.
属性
-
方法
-
事件
公共属性
|
animDuration : Number |
ScrollManager |
The animation duration in seconds -
MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4) |
|
animate : Boolean |
ScrollManager |
True to animate the scroll (defaults to true) |
|
frequency : Number |
ScrollManager |
The frequency of scrolls in milliseconds (defaults to 500) |
|
increment : Number |
ScrollManager |
The number of pixels to scroll in each scroll increment (defaults to 50) |
|
thresh : Number |
ScrollManager |
The number of pixels from the edge of a container the pointer needs to be to
trigger scrolling (defaults to 25) |
公共方法
|
refreshCache() : void |
ScrollManager |
Manually trigger a cache refresh. |
|
register(String/HTMLElement/Element/Array el ) : void |
ScrollManager |
Registers new overflow element(s) to auto scroll |
|
unregister(String/HTMLElement/Element/Array el ) : void |
ScrollManager |
Unregisters overflow element(s) so they are no longer scrolled |
公共事件
此类没有公共事件。
属性详情
animDuration
public Number animDuration
The animation duration in seconds -
MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)
This property is defined by ScrollManager.
animate
public Boolean animate
True to animate the scroll (defaults to true)
This property is defined by ScrollManager.
frequency
public Number frequency
The frequency of scrolls in milliseconds (defaults to 500)
This property is defined by ScrollManager.
increment
public Number increment
The number of pixels to scroll in each scroll increment (defaults to 50)
This property is defined by ScrollManager.
thresh
public Number thresh
The number of pixels from the edge of a container the pointer needs to be to
trigger scrolling (defaults to 25)
This property is defined by ScrollManager.
方法详情
refreshCache
public function refreshCache()
Manually trigger a cache refresh.
This method is defined by ScrollManager.
register
public function register(String/HTMLElement/Element/Array el
)
Registers new overflow element(s) to auto scroll
This method is defined by ScrollManager.
unregister
public function unregister(String/HTMLElement/Element/Array el
)
Unregisters overflow element(s) so they are no longer scrolled
This method is defined by ScrollManager.