fix framework to match new mojo sdk

The dart bindings changed semantics in a non-compatible way.
This commit is contained in:
Hixie
2016-01-15 15:06:49 -08:00
parent b55dfd607c
commit df78ec2b24
15 changed files with 33 additions and 32 deletions

View File

@@ -60,7 +60,7 @@ class DemoBinding extends BindingBase with Scheduler, Renderer {
);
PointerPacket packet = PointerPacket.deserialize(message);
for (Pointer pointer in packet.pointers) {
if (pointer.type == PointerType.MOVE)
if (pointer.type == PointerType.move)
image.growth = math.max(0.0, image.growth + pointer.x - touches[pointer.pointer].x);
touches[pointer.pointer] = new Touch(pointer.x, pointer.y);
}