@centreon/ui 26.3.9 → 26.3.10

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": "@centreon/ui",
3
- "version": "26.3.9",
3
+ "version": "26.3.10",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -38,8 +38,8 @@ const useZoomPreview = ({
38
38
  }: Props): ZoomPreview => {
39
39
  const [zoomBoundaries, setZoomBoundaries] = useState<Boundaries | null>(null);
40
40
  const [isApplyingZoom, setApplyingZoom] = useAtom(applyingZoomAtomAtom);
41
+ const [eventMouseUp, setEventMouseUp] = useAtom(eventMouseUpAtom);
41
42
  const eventMouseDown = useAtomValue(eventMouseDownAtom);
42
- const eventMouseUp = useAtomValue(eventMouseUpAtom);
43
43
  const mousePosition = useAtomValue(mousePositionAtom);
44
44
 
45
45
  const mousePointDown =
@@ -60,6 +60,7 @@ const useZoomPreview = ({
60
60
  end: xScale?.invert(zoomBoundaries?.end || graphWidth),
61
61
  start: xScale?.invert(zoomBoundaries?.start || 0)
62
62
  });
63
+ setEventMouseUp(null);
63
64
  }, [xScale, zoomBoundaries, graphWidth, getInterval]);
64
65
 
65
66
  useEffect(() => {
@@ -103,6 +104,7 @@ const useZoomPreview = ({
103
104
  return;
104
105
  }
105
106
  setZoomBoundaries(null);
107
+ setEventMouseUp(null);
106
108
  }, [isApplyingZoom]);
107
109
 
108
110
  const zoomBarWidth = Math.abs(