Handle gesture recognizers.