Added close-on-click support for touchscreen devices