fixes issue where user could set pan direction to vertical by vertical gesture and if top & bottom folding is not enabled, horizontal panning wouldn't work after