Fix for touchscreen devices