@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 +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -5
- 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
|
},
|