@imperosoft/cris-webui-components 1.1.2-beta.10 → 1.1.2-beta.12
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/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -187,7 +187,6 @@ function CrisButton({
|
|
|
187
187
|
touchStart();
|
|
188
188
|
touchingRef.current = true;
|
|
189
189
|
touchStartedHereRef.current = true;
|
|
190
|
-
handlePress();
|
|
191
190
|
};
|
|
192
191
|
const handleTouchEnd = () => {
|
|
193
192
|
log("handleTouchEnd", { touchStartedHereRef: touchStartedHereRef.current });
|
|
@@ -195,17 +194,17 @@ function CrisButton({
|
|
|
195
194
|
touchingRef.current = true;
|
|
196
195
|
if (touchStartedHereRef.current) {
|
|
197
196
|
touchStartedHereRef.current = false;
|
|
197
|
+
handlePress();
|
|
198
198
|
handleRelease();
|
|
199
199
|
} else {
|
|
200
|
-
log("SKIPPED
|
|
200
|
+
log("SKIPPED: touch did not start here");
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
const handleTouchCancel = () => {
|
|
204
|
-
log("handleTouchCancel");
|
|
204
|
+
log("handleTouchCancel (scroll detected)");
|
|
205
205
|
touchEnd();
|
|
206
206
|
touchingRef.current = true;
|
|
207
207
|
touchStartedHereRef.current = false;
|
|
208
|
-
handleRelease();
|
|
209
208
|
};
|
|
210
209
|
const handleMouseDown = () => {
|
|
211
210
|
if (isTouchActive() || touchingRef.current) return;
|
|
@@ -306,7 +305,7 @@ function CrisButton({
|
|
|
306
305
|
cursor: suppressKeyClicks ? "default" : "pointer",
|
|
307
306
|
position: isFreePositioned ? void 0 : "relative",
|
|
308
307
|
overflow: isFreePositioned ? void 0 : "hidden",
|
|
309
|
-
touchAction: "
|
|
308
|
+
touchAction: "pan-y",
|
|
310
309
|
userSelect: "none",
|
|
311
310
|
WebkitUserSelect: "none"
|
|
312
311
|
},
|
|
@@ -1383,6 +1382,7 @@ function MatrixItemRow({
|
|
|
1383
1382
|
type,
|
|
1384
1383
|
active,
|
|
1385
1384
|
showChannels,
|
|
1385
|
+
vmText,
|
|
1386
1386
|
onSelect,
|
|
1387
1387
|
onToggleVideoMute,
|
|
1388
1388
|
itemClassName,
|
|
@@ -1433,7 +1433,7 @@ function MatrixItemRow({
|
|
|
1433
1433
|
{
|
|
1434
1434
|
selected: item.vm.on,
|
|
1435
1435
|
enabled: item.vm.en,
|
|
1436
|
-
text:
|
|
1436
|
+
text: vmText,
|
|
1437
1437
|
onPress: onToggleVideoMute,
|
|
1438
1438
|
className: vmButtonClassName,
|
|
1439
1439
|
classActive: vmButtonActiveClassName
|
|
@@ -1457,6 +1457,7 @@ function CrisCoMatrixListsTie({
|
|
|
1457
1457
|
itemActiveClassName,
|
|
1458
1458
|
itemActiveStyle,
|
|
1459
1459
|
itemDisabledClassName,
|
|
1460
|
+
vmText = "Mute",
|
|
1460
1461
|
vmButtonClassName,
|
|
1461
1462
|
vmButtonActiveClassName,
|
|
1462
1463
|
renderIoIndicator,
|
|
@@ -1502,6 +1503,7 @@ function CrisCoMatrixListsTie({
|
|
|
1502
1503
|
type: "input",
|
|
1503
1504
|
active: si === item.id,
|
|
1504
1505
|
showChannels,
|
|
1506
|
+
vmText,
|
|
1505
1507
|
onSelect: () => handleSelectInput(item.id),
|
|
1506
1508
|
onToggleVideoMute: () => handleToggleVideoMute("input", item.id),
|
|
1507
1509
|
itemClassName,
|
|
@@ -1540,6 +1542,7 @@ function CrisCoMatrixListsTie({
|
|
|
1540
1542
|
type: "output",
|
|
1541
1543
|
active: item.ti === si,
|
|
1542
1544
|
showChannels,
|
|
1545
|
+
vmText,
|
|
1543
1546
|
onSelect: () => handleTie(item.id),
|
|
1544
1547
|
onToggleVideoMute: () => handleToggleVideoMute("output", item.id),
|
|
1545
1548
|
itemClassName,
|