         element.removeClass options.activeClass
 
     element.bind 'touchend touchcancel', (e) ->
-      if touch.ongoing and e.type is 'touchend'
+      if touch.ongoing and not touch.nestedTap and e.type is 'touchend'
         scope.$apply $parse(attrs.bpTap), {$event: e, touch}
         element.trigger 'tap', angular.extend {type: 'tap', touch}, e
       touch = {}

        else
          0
      touch.ongoing = yes
      element.addClass options.activeClass

    element.bind 'touchmove', (e) ->
      y =

      if options.boundMargin and
         (Math.abs(touch.y - y) < options.boundMargin and
         Math.abs(touch.x - x) < options.boundMargin)
        element.addClass options.activeClass unless touch.nestedTap
        touch.ongoing = on
        if options.noScroll
          e.preventDefault()
