@enact/ui 4.5.1 → 4.5.2

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,12 @@
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.5.2] - 2022-08-17
6
+
7
+ ### Fixed
8
+
9
+ - `ui/Marquee` to stop at the starting point after one cycle when scaled
10
+
5
11
  ## [4.5.1] - 2022-08-03
6
12
 
7
13
  ### Fixed
@@ -207,7 +207,8 @@ var MarqueeBase = (0, _kind["default"])({
207
207
  var _entries$0$rootBounds = entries[0].rootBounds,
208
208
  rootLeft = _entries$0$rootBounds.left,
209
209
  rootRight = _entries$0$rootBounds.right;
210
- var textWidth = rtl ? rootRight - right : left - rootLeft;
210
+ var scale = root.getBoundingClientRect().width / root.offsetWidth || 1;
211
+ var textWidth = (rtl ? rootRight - right : left - rootLeft) / scale;
211
212
  var offset = distance - (textWidth + spacing);
212
213
  node.style.setProperty('--ui-marquee-offset', offset);
213
214
  observer.disconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "A collection of simplified unstyled cross-platform UI components for Enact",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@enact/core": "^4.5.1",
28
+ "@enact/core": "^4.5.2",
29
29
  "classnames": "^2.3.1",
30
30
  "direction": "^1.0.4",
31
31
  "invariant": "^2.2.4",