@ts-core/angular 13.0.61 → 13.0.64

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.
@@ -1862,13 +1862,33 @@ class ResizeManager {
1862
1862
  // Event Handlers
1863
1863
  //
1864
1864
  // --------------------------------------------------------------------------
1865
- this.handler = (item) => this.subject.next(item);
1865
+ this.handler = (item) => {
1866
+ if (!ResizeManager.isSizeValid(item)) {
1867
+ return;
1868
+ }
1869
+ if (!_.isNil(this.size) && item.width === this.size.width && item.height === this.size.height) {
1870
+ return;
1871
+ }
1872
+ this.size = item;
1873
+ this.subject.next(item);
1874
+ };
1866
1875
  this.element = ViewUtil.parseElement(element);
1867
1876
  this.subject = new BehaviorSubject({ width: ViewUtil.getWidth(this.element), height: ViewUtil.getHeight(this.element) });
1868
1877
  this.sensor = new ResizeSensor(this.element, this.handler);
1869
1878
  }
1870
1879
  // --------------------------------------------------------------------------
1871
1880
  //
1881
+ // Static Methods
1882
+ //
1883
+ // --------------------------------------------------------------------------
1884
+ static isSizeValid(item) {
1885
+ if (_.isNil(item) || item.width <= 0 || item.height <= 0) {
1886
+ return false;
1887
+ }
1888
+ return true;
1889
+ }
1890
+ // --------------------------------------------------------------------------
1891
+ //
1872
1892
  // Public Properties
1873
1893
  //
1874
1894
  // --------------------------------------------------------------------------
@@ -4142,8 +4162,7 @@ class WindowImpl extends WindowBase {
4142
4162
  return this.properties.reference;
4143
4163
  }
4144
4164
  isNeedClickStopPropagation(event) {
4145
- // return !this.isWasOnTop;
4146
- if (!this.isWasOnTop && !this.isOnTop) {
4165
+ if (!this.isWasOnTop) {
4147
4166
  return true;
4148
4167
  }
4149
4168
  let element = _.find(this.elements, item => item.location.nativeElement === event.target);