Handling on-long-press and ng-click
<p>Hi I've got follow code (please use a tablet):</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>body {
  font-family: Roboto;
  box-sizing: border-box
}
.cContent {
  display: flex;
  flex-direction: column;
}
.cHeaders {
  display: flex;
  flex-direction: row;
}
.cHeader {
  background-color: rgb(141, 141, 142);
  color: white;
  padding: 10px;
  margin-left: 10px;
  margin-bottom: 5px;
}
.cThemeHeader {
  width: 300px;
}
.cItemHeader {
  width: 300px;
}
.cCountHeader {
  width: 80px;
  text-align: center
}
.cData {
  display: flex;
}
.cRow {
  display: flex;
  flex-direction: column;
}
.cItemRow {
  display: flex;
  width: 300px;
}
.cBox {
  background-color: rgb(208, 229, 199);
  color: #4a7f35;
  padding: 10px;
  margin-left: 10px;
  margin-bottom: 5px;
}
.cTheme {
  width: 300px;
}
.cItem {
  background-color: white;
  color: #4a7f35;
  border: 1px solid #4a7f35;
  padding-left: 5px;
  padding-right: 5px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 12px;
  height: 18px;
}
.cCount {
  width: 80px;
  background-color: #4a7f35;
  color: white;
  text-align: center
}
.cWindow {
  width: 100px;
  height: 100px;
  background-color: blue;
  color: white;
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  body {
    font-family: Arial;
  }
  .cBox {
    height: 30px;
    font-size: 20px;
    line-height: 30px;
  }
  .cItem {
    height: 30px;
    font-size: 20px;
    line-height: 30px;
  }
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
&lt;html ng-app="myApp" ng-controller="myController"&gt;

&lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /&gt;
  &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
  &lt;title&gt;Langer Klick&lt;/title&gt;
  &lt;link rel="stylesheet" href="./styles.css"&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-touch.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    angular.module("myApp", ['ngTouch']).controller("myController", function($scope) {
      $scope.dataList = [{
        id: 1,
        count: 0,
        text: 'Leistung nach Bedarf',
        items: [{
          id: 1,
          text: 'bei Bedarf'
        }]
      }, {
        id: 2,
        count: 0,
        text: 'Leistung je 2 stündlich',
        items: [{
          id: 1,
          text: '11:00'
        }, {
          id: 2,
          text: '15:00'
        }]
      }, {
        id: 3,
        count: 0,
        text: 'Leistung auf einen fixen Zeitpunkt',
        items: [{
          id: 1,
          text: '15:00'
        }, {
          id: 2,
          text: '16:00'
        }]
      }];
      $scope.isTablet = false;
      $scope.hideBox = function(event) {
        $(event.target).hide();
      }

      $scope.closeWindow = function() {
        $scope.isTablet = false;
      }

      $scope.helloWorld = function() {
        $scope.isTablet = true;
      }
    }).directive('onLongPress', function($timeout) {
      return {
        restrict: 'A',
        link: function($scope, $elm, $attrs) {
          $elm.bind('touchstart', function(evt) {
            // Locally scoped variable that will keep track of the long press
            $scope.longPress = true;

            // We'll set a timeout for 600 ms for a long press
            $timeout(function() {
              if ($scope.longPress) {
                // If the touchend event hasn't fired,
                // apply the function given in on the element's on-long-press attribute
                $scope.$apply(function() {
                  $scope.$eval($attrs.onLongPress)
                });
              }
            }, 600);
          });

          $elm.bind('touchend', function(evt) {
            // Prevent the onLongPress event from firing
            $scope.longPress = false;
            // If there is an on-touch-end function attached to this element, apply it
            if ($attrs.onTouchEnd) {
              $scope.$apply(function() {
                $scope.$eval($attrs.onTouchEnd)
              });
            }
          });
        }
      };
    });
  &lt;/script&gt;
  &lt;script src="./removeItem.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div class="cContent"&gt;
    &lt;div class="cHeaders"&gt;
      &lt;div class="cHeader cThemeHeader"&gt;Katalog&lt;/div&gt;
      &lt;div class="cHeader cItemHeader"&gt;Plan&lt;/div&gt;
      &lt;div class="cHeader cCountHeader"&gt;Ist&lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="cData" ng-repeat="data in dataList"&gt;
      &lt;div class="cThemeRow"&gt;
        &lt;div class="cBox cTheme"&gt;{{data.text}}&lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="cBox cItemRow"&gt;
        &lt;div ng-repeat="item in data.items" class="cItem" ng-click="data.count = data.count + 1; hideBox($event);" on-long-press="helloWorld();"&gt;{{item.text}}&lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="cCountRow"&gt;
        &lt;div class="cBox cCount"&gt;{{data.count}}&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="cWindow" ng-if="isTablet" ng-click="closeWindow();"&gt;HI, I'M A TEST WINDOW!&lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>I would like to remove the white box <code>.cItem</code> when I click on it (normal click with mouse or normal touch-click). This worsk fine. I also would like to open a window with a long pressed touch on the tablet but not remove the box. The long pressed touch works and it opens the window, but also removes the box (check this with a tablet). How can I just open the window without removing it (just function of a <code>on-long-press</code> not also <code>ng-click</code>)? I also would like to remove the default of a long press on tablet (marking text etc.) and just open the window. Any ideas? Thanks.</p>