Better handling of touch gestures