Added gesture recognition for tapping and panning