Merge pull request #4265 from lpcy/lpcy-touch-pad
To support the touch pad of the magnetic keyboard on Android tablets.
This commit is contained in:
commit
0ed209b4d2
@ -311,7 +311,7 @@ class InputModel {
|
|||||||
|
|
||||||
void onPointHoverImage(PointerHoverEvent e) {
|
void onPointHoverImage(PointerHoverEvent e) {
|
||||||
_stopFling = true;
|
_stopFling = true;
|
||||||
if (e.kind != ui.PointerDeviceKind.mouse) return;
|
if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) return;
|
||||||
if (!isPhysicalMouse.value) {
|
if (!isPhysicalMouse.value) {
|
||||||
isPhysicalMouse.value = true;
|
isPhysicalMouse.value = true;
|
||||||
}
|
}
|
||||||
@ -439,7 +439,7 @@ class InputModel {
|
|||||||
void onPointDownImage(PointerDownEvent e) {
|
void onPointDownImage(PointerDownEvent e) {
|
||||||
debugPrint("onPointDownImage");
|
debugPrint("onPointDownImage");
|
||||||
_stopFling = true;
|
_stopFling = true;
|
||||||
if (e.kind != ui.PointerDeviceKind.mouse) {
|
if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) {
|
||||||
if (isPhysicalMouse.value) {
|
if (isPhysicalMouse.value) {
|
||||||
isPhysicalMouse.value = false;
|
isPhysicalMouse.value = false;
|
||||||
}
|
}
|
||||||
@ -450,7 +450,7 @@ class InputModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onPointUpImage(PointerUpEvent e) {
|
void onPointUpImage(PointerUpEvent e) {
|
||||||
if (e.kind != ui.PointerDeviceKind.mouse) return;
|
if (e.kind != ui.PointerDeviceKind.mouse && e.kind != ui.PointerDeviceKind.touch) return;
|
||||||
if (isPhysicalMouse.value) {
|
if (isPhysicalMouse.value) {
|
||||||
handleMouse(getEvent(e, _kMouseEventUp));
|
handleMouse(getEvent(e, _kMouseEventUp));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user