@rogieking/figui3 1.3.0 → 1.3.1

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.
Files changed (2) hide show
  1. package/fig.js +4 -2
  2. package/package.json +1 -1
package/fig.js CHANGED
@@ -1793,7 +1793,8 @@ class FigInputJoystick extends HTMLElement {
1793
1793
 
1794
1794
  handleXInput(e) {
1795
1795
  e.stopPropagation();
1796
- this.position.x = e.target.value;
1796
+ this.position.x = Number(e.target.value);
1797
+ this.value = [this.position.x, this.position.y];
1797
1798
  this.#syncHandlePosition();
1798
1799
  this.#emitInputEvent();
1799
1800
  this.#emitChangeEvent();
@@ -1801,7 +1802,8 @@ class FigInputJoystick extends HTMLElement {
1801
1802
 
1802
1803
  handleYInput(e) {
1803
1804
  e.stopPropagation();
1804
- this.position.y = e.target.value;
1805
+ this.position.y = Number(e.target.value);
1806
+ this.value = [this.position.x, this.position.y];
1805
1807
  this.#syncHandlePosition();
1806
1808
  this.#emitInputEvent();
1807
1809
  this.#emitChangeEvent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {