Utility that provides a pull gesture with touch events.
Events:
openfl.events.Event.OPEN | Dispatched when the edge puller has completely opened. |
---|---|
openfl.events.Event.CLOSE | Dispatched when the edge puller has completely closed. |
openfl.events.Event.CANCEL | Dispatched when an open or close action is cancelled before completing. |
feathers.events.FeathersEvent.OPENING | Dispatched when the drawer starts opening. This event may be cancelled. |
feathers.events.FeathersEvent.CLOSING | Dispatched when the drawer starts closing. This event may be cancelled. |
openfl.events.Event.CHANGE | Dispatched when the
|
1.0.0
.Constructor
new(?target:InteractiveObject, pullableEdge:RelativePosition = LEFT, ?maxPullDistance:Float)
Creates a new EdgePuller
object with the given arguments.
1.0.0
.Variables
activeBorderSize:Null<Float>
The size, measured in pixels, of the active border where the pull
gesture may begin. If null
, the full bounds of the target may start
a pull gesture.
1.0.0
.ease:IEasing = Quart.easeOut
The easing function to use when animating the pull distance.
1.0.0
.maxPullDistance:Null<Float>
The maximum distance the edge of the target
may be pulled, measured in
pixels. If null
, the maximum pull distance will be equal to the full
size of the target
.
1.0.0
.See also:
minDragDistance:Float = 6.0
The minimum distance, measured in pixels, that the target must be dragged to begin a pull gesture.
1.0.0
.read onlypullDistance:Float
The current distance that the edge has been pulled, from 0.0
to
maxPullDistance
, measured in pixels.
1.0.0
.See also:
pullableEdge:RelativePosition
The edge of the target where the pull originates.
1.0.0
.simulateTouch:Bool = false
Determines if mouse events should be treated like touch events.
1.0.0
.read onlytouchPointID:Null<Int>
The touch point that is currently dragging the target. Returns null
if
no touch point is currently associated with the drag.
If simulateTouch
is true
, the touchPointIsSimulated
property will
indicate if the mouse is current dragging the target.
1.0.0
.See also:
read onlytouchPointIsSimulated:Bool
Returns true
if the mouse is dragging the target as a simulated touch
point.
1.0.0
.See also: