@salesforcedevs/dx-components 1.3.98 → 1.3.99
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.99",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"eventsourcemock": "^2.0.0",
|
|
41
41
|
"luxon": "^3.1.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cfa6b8d2380d28e07eafd5112f923e994179bfb5"
|
|
44
44
|
}
|
|
@@ -51,6 +51,13 @@ export default class Audio extends LightningElement {
|
|
|
51
51
|
this.trackClick(e, "custEv_blogAudioComplete", "complete");
|
|
52
52
|
}
|
|
53
53
|
private trackPause(e: Event) {
|
|
54
|
-
this.
|
|
54
|
+
const audioElement = this.template.querySelector(
|
|
55
|
+
"audio"
|
|
56
|
+
) as HTMLMediaElement;
|
|
57
|
+
|
|
58
|
+
//suppress 'pause' events that happen in the last 99% of the duration
|
|
59
|
+
if ((audioElement!.currentTime * 99) / audioElement!.duration < 99) {
|
|
60
|
+
this.trackClick(e, "custEv_blogAudioPause", "pause");
|
|
61
|
+
}
|
|
55
62
|
}
|
|
56
63
|
}
|