@wandelbots/wandelbots-js-react-components 1.44.2-pr.fix-joint-jogging-race-condition.151.121a5ce → 1.44.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "v1.44.2-pr.fix-joint-jogging-race-condition.151.121a5ce",
3
+ "version": "1.44.2",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -74,6 +74,9 @@ export const JoggingJointRotationControl = externalizeComponent(
74
74
  }
75
75
 
76
76
  function onPointerOut(ev: React.PointerEvent) {
77
+ // Prevent subelements of button from stopping jogging
78
+ if (ev.target !== ev.currentTarget) return
79
+
77
80
  state.stopJogging()
78
81
  }
79
82
 
@@ -134,11 +137,7 @@ export const JoggingJointRotationControl = externalizeComponent(
134
137
  ...(state.activeJoggingDir === "-" ? pressedButtonStyle : {}),
135
138
  }}
136
139
  >
137
- <ChevronLeft
138
- sx={{
139
- "pointer-events": "none",
140
- }}
141
- />
140
+ <ChevronLeft />
142
141
  </IconButton>
143
142
 
144
143
  <Stack
@@ -229,11 +228,7 @@ export const JoggingJointRotationControl = externalizeComponent(
229
228
  ...(state.activeJoggingDir === "+" ? pressedButtonStyle : {}),
230
229
  }}
231
230
  >
232
- <ChevronRight
233
- sx={{
234
- "pointer-events": "none",
235
- }}
236
- />
231
+ <ChevronRight />
237
232
  </IconButton>
238
233
  </Stack>
239
234
  )