@ts-core/angular 13.0.62 → 13.0.63

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,7 +1862,16 @@ class ResizeManager {
1862
1862
  // Event Handlers
1863
1863
  //
1864
1864
  // --------------------------------------------------------------------------
1865
- this.handler = (item) => this.subject.next(item);
1865
+ this.handler = (item) => {
1866
+ if (_.isNil(item) || _.isNaN(item.width) || _.isNaN(item.height) || item.width <= 0 || item.height <= 0) {
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);