Expose longpress and showpress in Listener

This commit is contained in:
Adam Barth 2015-08-13 15:48:07 -07:00
parent 7cba729110
commit 3523a10ab4

View File

@ -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 {
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 {
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 {
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)