@capgo/capacitor-stream-call 0.0.91 → 0.0.92
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.
|
@@ -80,6 +80,14 @@ class TouchInterceptView: UIView {
|
|
|
80
80
|
const x = \(x); const y = \(y);
|
|
81
81
|
const el = document.elementFromPoint(x, y);
|
|
82
82
|
if (!el) return 'NO_ELEM';
|
|
83
|
+
|
|
84
|
+
// iPad fix: Force active state since iPad Safari doesn't handle :active properly
|
|
85
|
+
const isIPad = navigator.userAgent.includes('iPad');
|
|
86
|
+
if (isIPad) {
|
|
87
|
+
el.classList.add('active');
|
|
88
|
+
if (el.style.setProperty) el.style.setProperty('opacity', '0.8', 'important');
|
|
89
|
+
}
|
|
90
|
+
|
|
83
91
|
const eventInit = { bubbles: true, cancelable: true, clientX: x, clientY: y };
|
|
84
92
|
const touchInit = { bubbles: true, cancelable: true, touches: [{ clientX: x, clientY: y }], targetTouches: [], changedTouches: [], shiftKey: false };
|
|
85
93
|
const seq = [];
|
|
@@ -95,6 +103,15 @@ class TouchInterceptView: UIView {
|
|
|
95
103
|
seq.push(new MouseEvent('mouseup', eventInit));
|
|
96
104
|
seq.push(new MouseEvent('click', eventInit));
|
|
97
105
|
seq.forEach(evt => el.dispatchEvent(evt));
|
|
106
|
+
|
|
107
|
+
// iPad cleanup
|
|
108
|
+
if (isIPad) {
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
el.classList.remove('active');
|
|
111
|
+
el.style.removeProperty('opacity');
|
|
112
|
+
}, 100);
|
|
113
|
+
}
|
|
114
|
+
|
|
98
115
|
console.log('SyntheticClick seq on', el);
|
|
99
116
|
return el.tagName;
|
|
100
117
|
})();
|
package/package.json
CHANGED