Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread