added support for touch cancel.