New table rotation flip
This commit is contained in:
fraxle
2026-08-06 00:48:07 +01:00
parent 7f3fbb18c7
commit 60eee8e4c1
4 changed files with 315 additions and 24 deletions
+4 -1
View File
@@ -732,6 +732,8 @@ export function useAppState() {
const bodyScrollRef = useRef(null);
const bodyTableRef = useRef(null);
const tableWrapRef = useRef(null);
// The rotated orientation's single scroll pane (scrolls in both axes).
const rotatedScrollRef = useRef(null);
// ── 7. COLUMN POPUP + TABLE SCROLL ───────────────────────────────────
const {
@@ -751,6 +753,7 @@ export function useAppState() {
handleBodyScroll,
} = useTableScroll({
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef, tableWrapRef,
rotatedScrollRef,
forecast, visibleCols, selectedDay, skinType, vehicleType,
indoorMode, indoorManaged, showDecimals, showUnits,
// The rotated table is a single table with CSS-only sticky edges, so
@@ -907,7 +910,7 @@ export function useAppState() {
forecastView, setForecastView,
// table refs
headStickyRef, headTrackRef, headTableRef,
bodyScrollRef, bodyTableRef, tableWrapRef,
bodyScrollRef, bodyTableRef, tableWrapRef, rotatedScrollRef,
// column popup
colPopup, colPopupRef,
handleThClick, handleThEnter, handleThLeave,