@playpilot/tpi 6.2.10-beta.4 → 6.2.10-beta.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/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
function scaleOrFly(node: Element): TransitionConfig {
|
|
84
84
|
if (prefersReducedMotion.current) return fade(node, { duration: 0 })
|
|
85
85
|
|
|
86
|
-
if (isMobile) return fly(node, { duration: 250, y: window.innerHeight })
|
|
86
|
+
if (isMobile) return fly(node, { duration: 250, y: window.innerHeight, opacity: 1 })
|
|
87
87
|
return scale(node, { duration: 150, start: 0.85 })
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -158,14 +158,14 @@
|
|
|
158
158
|
</div>
|
|
159
159
|
{/if}
|
|
160
160
|
|
|
161
|
-
<div class="close {closeButtonStyle}" bind:this={closeElement}>
|
|
162
|
-
<RoundButton onclick={close} aria-label="Close">
|
|
163
|
-
<IconClose />
|
|
164
|
-
</RoundButton>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
161
|
{@render children()}
|
|
168
162
|
</div>
|
|
163
|
+
|
|
164
|
+
<div class="close {closeButtonStyle}" transition:scaleOrFly|global bind:this={closeElement}>
|
|
165
|
+
<RoundButton onclick={close} aria-label="Close">
|
|
166
|
+
<IconClose />
|
|
167
|
+
</RoundButton>
|
|
168
|
+
</div>
|
|
169
169
|
</div>
|
|
170
170
|
|
|
171
171
|
<style lang="scss">
|
|
@@ -272,9 +272,11 @@
|
|
|
272
272
|
margin-top: calc(var(--dialog-offset) + margin(1));
|
|
273
273
|
top: 0;
|
|
274
274
|
right: margin(1);
|
|
275
|
+
transition: top 200ms;
|
|
275
276
|
|
|
276
277
|
@include desktop() {
|
|
277
278
|
position: absolute;
|
|
279
|
+
margin-top: 0;
|
|
278
280
|
top: margin(1);
|
|
279
281
|
}
|
|
280
282
|
|
|
@@ -302,6 +304,7 @@
|
|
|
302
304
|
|
|
303
305
|
.transitioning & {
|
|
304
306
|
top: margin(1);
|
|
307
|
+
transition: none;
|
|
305
308
|
}
|
|
306
309
|
}
|
|
307
310
|
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
movementStartY = event.touches[0].pageY
|
|
36
36
|
|
|
37
37
|
for (const target of targets) {
|
|
38
|
-
console.log(targets, target)
|
|
39
38
|
target.style.transitionDuration = '0ms'
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
|
|
68
67
|
for (const target of targets) {
|
|
69
68
|
target.style.removeProperty('transition')
|
|
70
|
-
target.style.
|
|
69
|
+
requestAnimationFrame(() => target.style.top = '0px')
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
|