Revert "Add buttons to gestures (#30339)" (#31801)

This reverts commit 727e7e829f.
This commit is contained in:
Jonah Williams
2019-04-29 12:59:30 -07:00
committed by GitHub
parent 120a1fc47f
commit 8fd7fa492a
14 changed files with 212 additions and 1869 deletions

View File

@@ -22,14 +22,9 @@ class TestPointer {
///
/// Multiple [TestPointer]s created with the same pointer identifier will
/// interfere with each other if they are used in parallel.
TestPointer([
this.pointer = 1,
this.kind = PointerDeviceKind.touch,
this.buttons = kPrimaryButton,
])
TestPointer([this.pointer = 1, this.kind = PointerDeviceKind.touch])
: assert(kind != null),
assert(pointer != null),
assert(buttons != null);
assert(pointer != null);
/// The pointer identifier used for events generated by this object.
///
@@ -40,10 +35,6 @@ class TestPointer {
/// [PointerDeviceKind.touch].
final PointerDeviceKind kind;
/// The kind of buttons to simulate on Down and Move events. Defaults to
/// [kPrimaryButton].
int buttons;
/// Whether the pointer simulated by this object is currently down.
///
/// A pointer is released (goes up) by calling [up] or [cancel].
@@ -90,7 +81,6 @@ class TestPointer {
kind: kind,
pointer: pointer,
position: location,
buttons: buttons,
);
}
@@ -115,7 +105,6 @@ class TestPointer {
pointer: pointer,
position: newLocation,
delta: delta,
buttons: buttons,
);
}