dojo/dnd/autoscroll

Summary

Used by dojo/dnd/Manager to scroll document or internal node when the user drags near the edge of the viewport or a scrollable node

See the dojo/dnd/autoscroll reference documentation for more information.

Properties

H_AUTOSCROLL_VALUE

Defined by: dojo/dnd/autoscroll

H_TRIGGER_AUTOSCROLL

Defined by: dojo/dnd/autoscroll

V_AUTOSCROLL_VALUE

Defined by: dojo/dnd/autoscroll

V_TRIGGER_AUTOSCROLL

Defined by: dojo/dnd/autoscroll

Methods

autoScroll(e)

Defined by dojo/dnd/autoscroll

a handler for mousemove and touchmove events, which scrolls the window, if necessary

Parameter Type Description
e Event

mousemove/touchmove event

autoScrollNodes(e)

Defined by dojo/dnd/autoscroll

a handler for mousemove and touchmove events, which scrolls the first available Dom element, it falls back to exports.autoScroll()

Parameter Type Description
e Event

mousemove/touchmove event

autoScrollStart(d)

Defined by dojo/dnd/autoscroll

Called at the start of a drag.

Parameter Type Description
d Document

The document of the node being dragged.

getViewport(doc)

Defined by dojo/window

Returns the dimensions and scroll position of the viewable area of a browser window

Parameter Type Description
doc Document
Optional

Returns: object

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/dnd/autoscroll.html