add pan gesture for vertical case