Fix gesture events in fn2
This CL makes gesture events work again in fn2. R=ianh@google.com Review URL: https://codereview.chromium.org/1146923005
This commit is contained in:
parent
da5e6c9a97
commit
0ee0a0c53b
@ -38,12 +38,17 @@ class ContainerApp extends App {
|
||||
),
|
||||
])),
|
||||
]),
|
||||
onPointerDown: _handlePointerDown);
|
||||
onPointerDown: _handlePointerDown,
|
||||
onGestureTap: _handleGestureTap);
|
||||
}
|
||||
|
||||
void _handlePointerDown(sky.PointerEvent event) {
|
||||
print("_handlePointerDown");
|
||||
}
|
||||
|
||||
void _handleGestureTap(sky.GestureEvent event) {
|
||||
print("_handleGestureTap");
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
|
@ -28,7 +28,7 @@ class RenderSolidColor extends RenderDecoratedBox {
|
||||
size = constraints.constrain(desiredSize);
|
||||
}
|
||||
|
||||
void handlePointer(sky.PointerEvent event) {
|
||||
void handleEvent(sky.Event event) {
|
||||
if (event.type == 'pointerdown')
|
||||
decoration = new BoxDecoration(backgroundColor: const sky.Color(0xFFFF0000));
|
||||
else if (event.type == 'pointerup')
|
||||
|
Loading…
x
Reference in New Issue
Block a user