Fix a touch handling bug introduced by canvas#timer