|
|
|
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|