Package | flexlib.containers |
Class | public class DragScrollingCanvas |
Inheritance | DragScrollingCanvas ![]() |
DragScrollingCanvas
is a Canvas component that allows the user to drag
the contents instead of or in addition to using the scrollbars. There is only one
additional property, childrenDoDrag, which is a Boolean indicating whether or not
a mouse down event on a child component will trigger the dragging.
Property | Defined by | ||
---|---|---|---|
childrenDoDrag : Boolean
Boolean to indicate whether the mouse events on the child components
should trigger the dragging.
| DragScrollingCanvas | ||
undraggableChildren : Array
Array of child components that will not trigger the dragging.
| DragScrollingCanvas | ||
undraggableClasses : Array
Array of Classes that will not trigger the dragging.
| DragScrollingCanvas |
childrenDoDrag | property |
childrenDoDrag:Boolean
[read-write]Boolean to indicate whether the mouse events on the child components should trigger the dragging. If true, any mouse down events will trigger dragging, even if these events happen on a child, like a Button. If set to false then only mouse down events directly on the canvas will trigger dragging.
The default value is true
.
public function get childrenDoDrag():Boolean
public function set childrenDoDrag(value:Boolean):void
undraggableChildren | property |
undraggableChildren:Array
[read-write]
Array of child components that will not trigger the dragging. Only applicable if childrenDoDrag
is true.
public function get undraggableChildren():Array
public function set undraggableChildren(value:Array):void
undraggableClasses | property |
undraggableClasses:Array
[read-write]
Array of Classes that will not trigger the dragging. Only applicable if childrenDoDrag
is true.
public function get undraggableClasses():Array
public function set undraggableClasses(value:Array):void