fix(sheets-ui): use skeleton sheet id for scroll command

This commit is contained in:
hexf00
2026-07-01 01:40:41 +08:00
parent fa24ff9015
commit 6e2a820282
@@ -253,7 +253,7 @@ export class SheetsScrollRenderController extends Disposable implements IRenderM
// NOT same as SetScrollRelativeCommand. that was exec in sheetRenderController
this._commandService.executeCommand(ScrollCommand.id, {
unitId: this._context.unitId,
sheetId: sheetObject.worksheet.getSheetId(),
sheetId: skeleton.getLocation()[1],
sheetViewStartRow: row,
sheetViewStartColumn: column,
offsetX: columnOffset,