@rdlabo/ionic-theme-ios26 1.3.2 → 1.3.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sheets-of-glass/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUjF,eAAO,MAAM,cAAc,GACzB,eAAe,WAAW,EAC1B,eAAe,MAAM,EACrB,mBAAmB,MAAM,EACzB,QAAQ,YAAY,KACnB,gBAAgB,GAAG,SA2LrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sheets-of-glass/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUjF,eAAO,MAAM,cAAc,GACzB,eAAe,WAAW,EAC1B,eAAe,MAAM,EACrB,mBAAmB,MAAM,EACzB,QAAQ,YAAY,KACnB,gBAAgB,GAAG,SAiMrB,CAAC"}
@@ -84,6 +84,9 @@ export const registerEffect = (targetElement, effectTagName, selectedClassName,
84
84
  }
85
85
  })();
86
86
  startAnimationPromise.then(() => {
87
+ if (!currentTouchedElement) {
88
+ return;
89
+ }
87
90
  moveAnimation = createMoveAnimation(effectElement, detail, tabSelectedElement, animationPosition);
88
91
  moveAnimation.progressStart(true, getStep(currentTouchedElement.getBoundingClientRect().left + currentTouchedElement.clientWidth / 2, animationPosition));
89
92
  });
@@ -137,6 +140,9 @@ export const registerEffect = (targetElement, effectTagName, selectedClassName,
137
140
  return false;
138
141
  }
139
142
  setTimeout(() => {
143
+ if (!currentTouchedElement) {
144
+ return;
145
+ }
140
146
  const targetX = currentTouchedElement.getBoundingClientRect().left + currentTouchedElement.clientWidth / 2;
141
147
  const step = getStep(targetX, animationPosition);
142
148
  moveAnimation.progressStep(step);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-theme-ios26",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "iOS26 Theme for Ionic Framework",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -103,10 +103,13 @@ export const registerEffect = (
103
103
  }
104
104
  })();
105
105
  startAnimationPromise.then(() => {
106
+ if (!currentTouchedElement) {
107
+ return;
108
+ }
106
109
  moveAnimation = createMoveAnimation(effectElement, detail, tabSelectedElement, animationPosition!);
107
110
  moveAnimation.progressStart(
108
111
  true,
109
- getStep(currentTouchedElement!.getBoundingClientRect().left + currentTouchedElement!.clientWidth / 2, animationPosition!),
112
+ getStep(currentTouchedElement.getBoundingClientRect().left + currentTouchedElement.clientWidth / 2, animationPosition!),
110
113
  );
111
114
  });
112
115
  getScaleAnimation(effectElement).duration(200).to('opacity', 1).to('transform', scales.large).play();
@@ -167,7 +170,10 @@ export const registerEffect = (
167
170
  }
168
171
 
169
172
  setTimeout(() => {
170
- const targetX = currentTouchedElement!.getBoundingClientRect().left + currentTouchedElement!.clientWidth / 2;
173
+ if (!currentTouchedElement) {
174
+ return;
175
+ }
176
+ const targetX = currentTouchedElement.getBoundingClientRect().left + currentTouchedElement.clientWidth / 2;
171
177
  const step = getStep(targetX, animationPosition!);
172
178
  moveAnimation!.progressStep(step);
173
179
  });