dojo/dnd/autoscroll (version 1.10)

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.

Property Summary

Method Summary

  • autoScroll(e) a handler for mousemove and touchmove events, which scrolls the window, if necessary
  • autoScrollNodes(e) a handler for mousemove and touchmove events, which scrolls the first available Dom element, it falls back to exports.autoScroll()
  • autoScrollStart(d) Called at the start of a drag.
  • getViewport(doc) Returns the dimensions and scroll position of the viewable area of a browser window

Properties

_validNodes
Defined by: dojo/dnd/autoscroll
_validOverflow
Defined by: dojo/dnd/autoscroll
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
Error in the documentation? Can’t find what you are looking for? Let us know!