浏览代码

fix gesture_detector.cs

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
de42bdfb
共有 1 个文件被更改,包括 16 次插入1 次删除
  1. 17
      com.unity.uiwidgets/Runtime/widgets/gesture_detector.cs

17
com.unity.uiwidgets/Runtime/widgets/gesture_detector.cs


GestureTapUpCallback onTapUp = null,
GestureTapCallback onTap = null,
GestureTapCancelCallback onTapCancel = null,
GestureTapDownCallback onSecondaryTapDown = null,
GestureTapUpCallback onSecondaryTapUp = null,
GestureTapCancelCallback onSecondaryTapCancel = null,
GestureDoubleTapCallback onDoubleTap = null,
GestureLongPressCallback onLongPress = null,
GestureLongPressStartCallback onLongPressStart = null,

this.onTapUp = onTapUp;
this.onTap = onTap;
this.onTapCancel = onTapCancel;
this.onSecondaryTapDown = onSecondaryTapDown;
this.onSecondaryTapUp = onSecondaryTapUp;
this.onSecondaryTapCancel = onSecondaryTapCancel;
this.onDoubleTap = onDoubleTap;
this.onLongPress = onLongPress;
this.onLongPressUp = onLongPressUp;

public readonly GestureTapUpCallback onTapUp;
public readonly GestureTapCallback onTap;
public readonly GestureTapCancelCallback onTapCancel;
public readonly GestureTapDownCallback onSecondaryTapDown;
public readonly GestureTapUpCallback onSecondaryTapUp;
public readonly GestureTapCancelCallback onSecondaryTapCancel;
public readonly GestureDoubleTapCallback onDoubleTap;
public readonly GestureLongPressCallback onLongPress;
public readonly GestureLongPressUpCallback onLongPressUp;

if (onTapDown != null ||
onTapUp != null ||
onTap != null ||
onTapCancel != null) {
onTapCancel != null ||
onSecondaryTapDown != null ||
onSecondaryTapUp != null ||
onSecondaryTapCancel != null) {
gestures[typeof(TapGestureRecognizer)] =
new GestureRecognizerFactoryWithHandlers<TapGestureRecognizer>(
() => new TapGestureRecognizer(debugOwner: this),

instance.onTap = onTap;
instance.onTapCancel = onTapCancel;
instance.onSecondaryTapDown = onSecondaryTapDown;
instance.onSecondaryTapUp = onSecondaryTapUp;
instance.onSecondaryTapCancel = onSecondaryTapCancel;
}
);
}

正在加载...
取消
保存