@wandelbots/wandelbots-js-react-components 1.24.1 → 1.24.2
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
|
@@ -39,11 +39,15 @@ export const JoggingCartesianAxisControl = externalizeComponent(
|
|
|
39
39
|
const valueContainerRef = useRef<HTMLParagraphElement>(null)
|
|
40
40
|
|
|
41
41
|
function onPointerDownMinus(ev: React.PointerEvent) {
|
|
42
|
+
if (disabled) return
|
|
43
|
+
|
|
42
44
|
// Stop right click from triggering jog
|
|
43
45
|
if (ev.button === 0) startJogging("-")
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
function onPointerDownPlus(ev: React.PointerEvent) {
|
|
49
|
+
if (disabled) return
|
|
50
|
+
|
|
47
51
|
if (ev.button === 0) startJogging("+")
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -62,7 +66,6 @@ export const JoggingCartesianAxisControl = externalizeComponent(
|
|
|
62
66
|
onPointerDown={onPointerDownMinus}
|
|
63
67
|
onPointerUp={stopJogging}
|
|
64
68
|
onPointerOut={stopJogging}
|
|
65
|
-
disabled={disabled}
|
|
66
69
|
size="large"
|
|
67
70
|
sx={{
|
|
68
71
|
width: "55px",
|
|
@@ -118,7 +121,6 @@ export const JoggingCartesianAxisControl = externalizeComponent(
|
|
|
118
121
|
onPointerDown={onPointerDownPlus}
|
|
119
122
|
onPointerUp={stopJogging}
|
|
120
123
|
onPointerOut={stopJogging}
|
|
121
|
-
disabled={disabled}
|
|
122
124
|
size="large"
|
|
123
125
|
sx={{
|
|
124
126
|
width: "55px",
|