@enact/ui 4.9.4 → 4.9.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  The following is a curated list of changes in the Enact ui module, newest changes on the top.
4
4
 
5
+ ## [4.9.6] - 2025-03-27
6
+
7
+ No significant changes.
8
+
9
+ ## [4.9.5] - 2024-12-11
10
+
11
+ ### Fixed
12
+
13
+ - `ui/VirtualList` to not abnormally scroll when `dataSize` and `itemSizes` changed
14
+
5
15
  ## [4.9.4] - 2024-11-19
6
16
 
7
17
  ### Fixed
@@ -441,7 +441,7 @@ var VirtualListBasic = exports.VirtualListBasic = /*#__PURE__*/function (_Compon
441
441
  this.indexToScrollIntoView = -1;
442
442
  }
443
443
  }
444
- if (prevProps.direction !== this.props.direction || prevProps.overhang !== this.props.overhang || prevProps.spacing !== this.props.spacing || !(0, _equals["default"])(prevProps.itemSize, this.props.itemSize) || !(0, _util.shallowEqual)(prevProps.itemSizes, this.props.itemSizes)) {
444
+ if (prevProps.direction !== this.props.direction || prevProps.overhang !== this.props.overhang || prevProps.spacing !== this.props.spacing || !(0, _equals["default"])(prevProps.itemSize, this.props.itemSize) || !this.hasDataSizeChanged && !(0, _util.shallowEqual)(prevProps.itemSizes, this.props.itemSizes)) {
445
445
  var _this$getXY = this.getXY(this.scrollPosition, 0),
446
446
  x = _this$getXY.x,
447
447
  y = _this$getXY.y;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.9.4",
3
+ "version": "4.9.6",
4
4
  "description": "A collection of simplified unstyled cross-platform UI components for Enact",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@enact/core": "^4.9.4",
35
+ "@enact/core": "^4.9.6",
36
36
  "classnames": "^2.5.1",
37
37
  "direction": "^1.0.4",
38
38
  "invariant": "^2.2.4",
@@ -156,6 +156,7 @@ var useScrollBase = exports.useScrollBase = function useScrollBase(props) {
156
156
  delete rest.onScrollStart;
157
157
  delete rest.onScrollStop;
158
158
  delete rest.onWheel;
159
+ delete rest.preventScroll; // scrollMode 'native'
159
160
  delete rest.removeEventListeners;
160
161
  delete rest.scrollStopOnScroll; // scrollMode 'native'
161
162
  delete rest.scrollTo;
@@ -815,6 +816,8 @@ var useScrollBase = exports.useScrollBase = function useScrollBase(props) {
815
816
  scrollByPage(ev.keyCode);
816
817
  }
817
818
  } else {
819
+ var _props$preventScroll;
820
+ (_props$preventScroll = props.preventScroll) === null || _props$preventScroll === void 0 || _props$preventScroll.call(props, ev);
818
821
  (0, _handle.forward)('onKeyDown', ev, props);
819
822
  }
820
823
  }