ohif-viewer/platform/ui-next/src/hooks
Joe Boccanfuso 1df4f843fe
fix(segmentation): Fixed the manual scrolling of the segments list and implemented automatic scrolling to the active segment. (#5510)
The height of the list container is now calculated based on a parent div instead of itself.
DataRow component now has a forward ref to allow for automatic scrolling.

Added better detection to the useDynamicMaxHeight hook for when to recalculate the max height using intersection observers.

The useEffect for scrolling a segment into view used to be excessively called to the point
where it was auto scrolling after the user manually scrolled. The auto scroll useEffect is
now dependent on the segment index changing which should only happen once per active segment change.
2025-10-21 11:58:23 -04:00
..
index.ts fix/remove legacy ui (#5010) 2025-05-02 14:05:40 -04:00
useDynamicMaxHeight.ts fix(segmentation): Fixed the manual scrolling of the segments list and implemented automatic scrolling to the active segment. (#5510) 2025-10-21 11:58:23 -04:00
useSessionStorage.test.js fix/remove legacy ui (#5010) 2025-05-02 14:05:40 -04:00
useSessionStorage.tsx fix/remove legacy ui (#5010) 2025-05-02 14:05:40 -04:00