new InputManagerDragEvent(rawEvent, start)
Drag event.
Parameters:
Name | Type | Description |
---|---|---|
rawEvent |
Event | Raw DOM event. |
start |
Grape2D.Vector | Start position of the drag. |
- Source:
Extends
Members
-
<private> delta :Grape2D.Vector
-
Difference between the end and the start position of the event.
Type:
- Source:
-
<private> end :Grape2D.Vector
-
End position of the dragging event.
Type:
- Source:
-
<private> raw :Event
-
Raw event.
Type:
- Event
- Inherited From:
- Source:
-
<private> start :Grape2D.Vector
-
Start position of the dragging event.
Type:
- Source:
-
<private> target :EventTarget
-
Element where the drag event happened. It should be a DOM element associated with a {Grape2D.Renderer}.
Type:
- EventTarget
- Source:
Methods
-
getDelta() → {Grape2D.Vector}
-
Gets the difference between end and start position.
- Source:
Returns:
Difference of positions.- Type
- Grape2D.Vector
-
getEnd() → {Grape2D.Vector}
-
Gets the end position of the event.
- Source:
Returns:
End position.- Type
- Grape2D.Vector
-
getRaw() → {Event}
-
Gets the raw event.
- Inherited From:
- Source:
Returns:
The event fired.- Type
- Event
-
getStart() → {Grape2D.Vector}
-
Gets the start position of the event.
- Source:
Returns:
Start position.- Type
- Grape2D.Vector
-
getTarget() → {EventTarget}
-
Gets the element where the event happened.
- Source:
Returns:
Element.- Type
- EventTarget