@imperosoft/cris-webui-components 1.1.2-beta.11 → 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.js CHANGED
@@ -224,7 +224,6 @@ function CrisButton({
224
224
  touchStart();
225
225
  touchingRef.current = true;
226
226
  touchStartedHereRef.current = true;
227
- handlePress();
228
227
  };
229
228
  const handleTouchEnd = () => {
230
229
  log("handleTouchEnd", { touchStartedHereRef: touchStartedHereRef.current });
@@ -232,17 +231,17 @@ function CrisButton({
232
231
  touchingRef.current = true;
233
232
  if (touchStartedHereRef.current) {
234
233
  touchStartedHereRef.current = false;
234
+ handlePress();
235
235
  handleRelease();
236
236
  } else {
237
- log("SKIPPED handleRelease: touch did not start here");
237
+ log("SKIPPED: touch did not start here");
238
238
  }
239
239
  };
240
240
  const handleTouchCancel = () => {
241
- log("handleTouchCancel");
241
+ log("handleTouchCancel (scroll detected)");
242
242
  touchEnd();
243
243
  touchingRef.current = true;
244
244
  touchStartedHereRef.current = false;
245
- handleRelease();
246
245
  };
247
246
  const handleMouseDown = () => {
248
247
  if (isTouchActive() || touchingRef.current) return;
@@ -343,7 +342,7 @@ function CrisButton({
343
342
  cursor: suppressKeyClicks ? "default" : "pointer",
344
343
  position: isFreePositioned ? void 0 : "relative",
345
344
  overflow: isFreePositioned ? void 0 : "hidden",
346
- touchAction: "none",
345
+ touchAction: "pan-y",
347
346
  userSelect: "none",
348
347
  WebkitUserSelect: "none"
349
348
  },