@syncfusion/ej2-layouts 19.3.44 → 19.3.48

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.
@@ -237,6 +237,10 @@ let Splitter = class Splitter extends Component {
237
237
  }
238
238
  preRender() {
239
239
  this.onReportWindowSize = this.reportWindowSize.bind(this);
240
+ this.onMouseMoveHandler = this.onMouseMove.bind(this);
241
+ this.onMouseUpHandler = this.onMouseUp.bind(this);
242
+ this.onTouchMoveHandler = this.onMouseMove.bind(this);
243
+ this.onTouchEndHandler = this.onMouseUp.bind(this);
240
244
  this.wrapper = this.element.cloneNode(true);
241
245
  this.wrapperParent = this.element.parentElement;
242
246
  removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
@@ -1050,21 +1054,21 @@ let Splitter = class Splitter extends Component {
1050
1054
  }
1051
1055
  }
1052
1056
  wireResizeEvents() {
1053
- EventHandler.add(document, 'mousemove', this.onMouseMove, this);
1054
- EventHandler.add(document, 'mouseup', this.onMouseUp, this);
1057
+ document.addEventListener('mousemove', this.onMouseMoveHandler, true);
1058
+ document.addEventListener('mouseup', this.onMouseUpHandler, true);
1055
1059
  const touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
1056
1060
  const touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
1057
- EventHandler.add(document, touchMoveEvent, this.onMouseMove, this);
1058
- EventHandler.add(document, touchEndEvent, this.onMouseUp, this);
1061
+ document.addEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
1062
+ document.addEventListener(touchEndEvent, this.onTouchEndHandler, true);
1059
1063
  }
1060
1064
  unwireResizeEvents() {
1061
1065
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize);
1062
1066
  const touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
1063
1067
  const touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
1064
- EventHandler.remove(document, 'mousemove', this.onMouseMove);
1065
- EventHandler.remove(document, 'mouseup', this.onMouseUp);
1066
- EventHandler.remove(document, touchMoveEvent, this.onMouseMove);
1067
- EventHandler.remove(document, touchEndEvent, this.onMouseUp);
1068
+ document.removeEventListener('mousemove', this.onMouseMoveHandler, true);
1069
+ document.removeEventListener('mouseup', this.onMouseUpHandler, true);
1070
+ document.removeEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
1071
+ document.removeEventListener(touchEndEvent, this.onTouchEndHandler, true);
1068
1072
  }
1069
1073
  wireClickEvents() {
1070
1074
  EventHandler.add(this.currentSeparator, 'touchstart click', this.clickHandler, this);
@@ -2846,10 +2850,6 @@ let DashboardLayout = class DashboardLayout extends Component {
2846
2850
  currentX = this.getMaxWidth(panelModel) - this.elementWidth;
2847
2851
  this.mOffX = dX - currentX;
2848
2852
  }
2849
- else if (this.elementX + this.elementWidth + dX > this.maxLeft) {
2850
- currentX = this.maxLeft - this.elementX - this.elementWidth;
2851
- this.mOffX = dX - currentX;
2852
- }
2853
2853
  this.elementWidth += currentX;
2854
2854
  }
2855
2855
  el.style.top = this.elementY + 'px';
@@ -3089,7 +3089,6 @@ let DashboardLayout = class DashboardLayout extends Component {
3089
3089
  const row = parseInt(ele.getAttribute('data-row'), 10);
3090
3090
  const col = parseInt(ele.getAttribute('data-col'), 10);
3091
3091
  this.panelPropertyChange(cellInstance, { row: row, col: col });
3092
- this.updatePanelLayout(ele, cellInstance);
3093
3092
  this.setHeightAndWidth(ele, this.getCellInstance(ele.id));
3094
3093
  this.setPanelPosition(ele, row, col);
3095
3094
  this.updateRowHeight();