Commit 3523a10a authored by Adam Barth's avatar Adam Barth

Expose longpress and showpress in Listener

parent 7cba7291
...@@ -481,8 +481,10 @@ class Listener extends TagNode { ...@@ -481,8 +481,10 @@ class Listener extends TagNode {
GestureEventListener onGestureFlingStart, GestureEventListener onGestureFlingStart,
GestureEventListener onGestureScrollStart, GestureEventListener onGestureScrollStart,
GestureEventListener onGestureScrollUpdate, GestureEventListener onGestureScrollUpdate,
GestureEventListener onGestureLongPress,
GestureEventListener onGestureTap, GestureEventListener onGestureTap,
GestureEventListener onGestureTapDown, GestureEventListener onGestureTapDown,
GestureEventListener onGestureShowPress,
PointerEventListener onPointerCancel, PointerEventListener onPointerCancel,
PointerEventListener onPointerDown, PointerEventListener onPointerDown,
PointerEventListener onPointerMove, PointerEventListener onPointerMove,
...@@ -496,6 +498,8 @@ class Listener extends TagNode { ...@@ -496,6 +498,8 @@ class Listener extends TagNode {
onGestureScrollStart: onGestureScrollStart, onGestureScrollStart: onGestureScrollStart,
onGestureTap: onGestureTap, onGestureTap: onGestureTap,
onGestureTapDown: onGestureTapDown, onGestureTapDown: onGestureTapDown,
onGestureLongPress: onGestureLongPress,
onGestureShowPress: onGestureShowPress,
onPointerCancel: onPointerCancel, onPointerCancel: onPointerCancel,
onPointerDown: onPointerDown, onPointerDown: onPointerDown,
onPointerMove: onPointerMove, onPointerMove: onPointerMove,
...@@ -514,6 +518,8 @@ class Listener extends TagNode { ...@@ -514,6 +518,8 @@ class Listener extends TagNode {
GestureEventListener onGestureScrollUpdate, GestureEventListener onGestureScrollUpdate,
GestureEventListener onGestureTap, GestureEventListener onGestureTap,
GestureEventListener onGestureTapDown, GestureEventListener onGestureTapDown,
GestureEventListener onGestureLongPress,
GestureEventListener onGestureShowPress,
PointerEventListener onPointerCancel, PointerEventListener onPointerCancel,
PointerEventListener onPointerDown, PointerEventListener onPointerDown,
PointerEventListener onPointerMove, PointerEventListener onPointerMove,
...@@ -538,6 +544,10 @@ class Listener extends TagNode { ...@@ -538,6 +544,10 @@ class Listener extends TagNode {
listeners['gesturetap'] = onGestureTap; listeners['gesturetap'] = onGestureTap;
if (onGestureTapDown != null) if (onGestureTapDown != null)
listeners['gesturetapdown'] = onGestureTapDown; listeners['gesturetapdown'] = onGestureTapDown;
if (onGestureLongPress != null)
listeners['gesturelongpress'] = onGestureLongPress;
if (onGestureShowPress != null)
listeners['gestureshowpress'] = onGestureShowPress;
if (onPointerCancel != null) if (onPointerCancel != null)
listeners['pointercancel'] = onPointerCancel; listeners['pointercancel'] = onPointerCancel;
if (onPointerDown != null) if (onPointerDown != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment