jmgraph 3.2.13 → 3.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jmgraph.js CHANGED
@@ -1720,17 +1720,17 @@ var jmControl = exports.jmControl = exports["default"] = /*#__PURE__*/function (
1720
1720
  x: offsetx,
1721
1721
  y: offsety
1722
1722
  });
1723
- if (outside.left < 0) {
1723
+ if (outside.left < 0 && offsetx < 0) {
1724
1724
  //offsetx -= outside.left;
1725
1725
  offsetx = 0;
1726
- } else if (outside.right > 0) {
1726
+ } else if (outside.right > 0 && offsetx > 0) {
1727
1727
  //offsetx -= outside.right;
1728
1728
  offsetx = 0;
1729
1729
  }
1730
- if (outside.top < 0) {
1730
+ if (outside.top < 0 && offsety < 0) {
1731
1731
  //offsety -= outside.top;
1732
1732
  offsety = 0;
1733
- } else if (outside.bottom > 0) {
1733
+ } else if (outside.bottom > 0 && offsety > 0) {
1734
1734
  //offsety -= outside.bottom;
1735
1735
  offsety = 0;
1736
1736
  }
@@ -1903,6 +1903,18 @@ var jmEvents = exports.jmEvents = exports["default"] = /*#__PURE__*/function ()
1903
1903
  return false;
1904
1904
  }
1905
1905
  }
1906
+ }, {
1907
+ key: "tap",
1908
+ value: function tap(evt) {
1909
+ evt = evt || window.event;
1910
+ evt.eventName = 'tap';
1911
+ this.container.raiseEvent('tap', evt);
1912
+ var t = evt.target || evt.srcElement;
1913
+ if (t == this.target) {
1914
+ //if(evt.preventDefault) evt.preventDefault();
1915
+ return false;
1916
+ }
1917
+ }
1906
1918
  }, {
1907
1919
  key: "destroy",
1908
1920
  value: