Bug 940706 - Fix gesture detection transformation with APZC. r=kats,botond