title: OpenLayers 3 right click event
body: <p>I am trying to listen to right mouse click , i tried <code>"rightclick"</code> as in documentation says , but it doesn't work.</p>
  
  <p>Can any one say why it doesn't work ???</p>
  
  <pre><code> map.on('rightclick', function (evt) {
              var feature = map.forEachFeatureAtPixel(evt.pixel, function (feature) {
                  if (typeof (feature.getId()) != "undefined") {
                      return feature;
                  }
              });
  
              if (feature) {
                  var registeredObjectId = -1;
  
                  if (typeof MapObjects !== "undefined") {
                      for (var i = 0; i &lt; MapObjects.ObjectResult.length; i++) {
                          if (feature.p.name === MapObjects.ObjectResult[i].Id) {
                              registeredObjectId = i;
                          }
                      }
                  }
  
                  var geometry = feature.getGeometry();
                  var coord = geometry.getCoordinates();
  
                  if (registeredObjectId === -1) {
                      popup.setPosition(evt.coordinate);
                      $(element).popover({
                          'placement': 'top',
                          'html': true,
                          'content': "&lt;a style='cursor: pointer' onclick='DeleteCoordinate(\"" + feature.getId() + "\")'&gt;Delete&lt;/a&gt;"
                      });
                      $(element).popover('show');
                      $(element2).popover('destroy');
                  }
                  else {
                      popup2.setPosition(evt.coordinate);
                      console.log(MapObjects.ObjectResult[registeredObjectId].Name);
                      console.log(MapObjects.ObjectResult[registeredObjectId].Value);
                      $(element2).popover({
                          'placement': 'top',
                          'html': true,
                          'content': "&lt;label&gt;" + MapObjects.ObjectResult[registeredObjectId].Name + "&lt;/label&gt;&lt;/br&gt;&lt;label&gt;" + MapObjects.ObjectResult[registeredObjectId].Value + "&lt;/label&gt;&lt;/br&gt;&lt;a style='cursor: pointer' onclick='DeleteCoordinate(\"" + feature.getId() + "\")'&gt;Delete&lt;/a&gt;"
                      });
                      $(element2).popover('show');
                      $(element).popover('destroy');
                  }
  
              } else {
                  $(element).popover('destroy');
                  $(element2).popover('destroy');
              }
          });
  </code></pre>
  
  <p>On "click" it works, "pointerup" works as right click ,but includes also left .</p>