浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
9c512fc0
共有 3 个文件被更改,包括 5 次插入10 次删除
  1. 1
      com.unity.uiwidgets/Runtime/gestures/converter.cs
  2. 13
      com.unity.uiwidgets/Runtime/gestures/multitap.cs
  3. 1
      com.unity.uiwidgets/Runtime/rendering/editable.cs

1
com.unity.uiwidgets/Runtime/gestures/converter.cs


break;
case PointerChange.move: {
Debug.LogError("need add synthesized into PointerData");
yield return new PointerMoveEvent(
timeStamp: timeStamp,
pointer: datum.pointerIdentifier,

13
com.unity.uiwidgets/Runtime/gestures/multitap.cs


using Unity.UIWidgets.ui;
namespace Unity.UIWidgets.gestures {
public delegate void GestureDoubleTapCallback(DoubleTapDetails details);
public delegate void GestureDoubleTapCallback();
public delegate void GestureMultiTapDownCallback(int pointer, TapDownDetails details);

tracker.entry.resolve(GestureDisposition.accepted);
_freezeTracker(tracker);
_trackers.Remove(tracker.pointer);
_checkUp(tracker);
_checkUp(tracker.initialButtons);
_reset();
}

}
}
void _checkUp(_TapTracker tracker) {
// D.assert(buttons == kPrimaryButton);
void _checkUp(int buttons) {
D.assert(buttons == gesture_.kPrimaryButton);
invokeCallback<object>("onDoubleTap", () => {
onDoubleTap(new DoubleTapDetails(tracker._initialGlobalPosition));
return null;
});
invokeCallback("onDoubleTap",() => onDoubleTap);
}
}

1
com.unity.uiwidgets/Runtime/rendering/editable.cs


_doubleTap = new DoubleTapGestureRecognizer(this);
_tap.onTapDown = _handleTapDown;
_tap.onTap = _handleTap;
_doubleTap.onDoubleTap = _handleDoubleTap;
_longPress = new LongPressGestureRecognizer(debugOwner: this);
_longPress.onLongPress = _handleLongPress;

正在加载...
取消
保存