Utility that provides a pull gesture with touch events.
Events:
openfl.events.Event.OPEN | |
---|---|
openfl.events.Event.CLOSE | |
feathers.events.FeathersEvent.OPENING | |
feathers.events.FeathersEvent.CLOSING | |
openfl.events.Event.CANCEL | |
openfl.events.Event.CHANGE |
1.0.0
.Static variables
staticfinalread onlyPOINTER_ID_MOUSE:Int = -1000
A special pointer ID for the mouse.
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 onlypointerID:Int
The pointer that is currently dragging the target. Returns -1
if no pointer is currently associated with the drag.
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
.