fix, one tap results double tap event
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
92213f9228
commit
863c8de28e
@ -112,7 +112,9 @@ class _RawTouchGestureDetectorRegionState
|
|||||||
if (lastDeviceKind != PointerDeviceKind.touch) {
|
if (lastDeviceKind != PointerDeviceKind.touch) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
inputModel.tap(MouseButtons.left);
|
if (!handleTouch) {
|
||||||
|
inputModel.tap(MouseButtons.left);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onDoubleTapDown(TapDownDetails d) {
|
onDoubleTapDown(TapDownDetails d) {
|
||||||
|
@ -421,9 +421,8 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// to-do: Check if peer is ios.
|
bool get showCursorPaint =>
|
||||||
bool get isPeerMobile => kPeerPlatformAndroid == gFFI.ffiModel.pi.platform;
|
!gFFI.ffiModel.isPeerAndroid && !gFFI.canvasModel.cursorEmbedded;
|
||||||
bool get showCursorPaint => !isPeerMobile && !gFFI.canvasModel.cursorEmbedded;
|
|
||||||
|
|
||||||
Widget getBodyForMobile() {
|
Widget getBodyForMobile() {
|
||||||
final keyboardIsVisible = keyboardVisibilityController.isVisible;
|
final keyboardIsVisible = keyboardVisibilityController.isVisible;
|
||||||
|
Loading…
Reference in New Issue
Block a user