GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): horizontal table scrolling preserves timeline follow by nateEc · Pull Request #24045 · pingdotgg/t3code

fix(web): horizontal table scrolling preserves timeline follow #24045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 6 commits into pingdotgg:main from nateEc:codex/fix-24018-horizontal-composer-scroll
Nov 14, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(web): horizontal table scrolling preserves timeline follow #24045

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
2ba8ae6
fix(web): 横向滚动表格时保持输入框状态
nateEc Oct 23, 2026
18bee2c
fix(web): 将横向滚动过滤迁移到主线视口入口
nateEc Oct 26, 2026
23dadff
fix(web): merge main into horizontal composer scroll fix
maria-rcks Oct 27, 2026
72757e7
chore(web): 保留主线输入框布局并合并滚动手势修复
nateEc Nov 7, 2026
22b54bc
Merge origin/main into codex/fix-24018-horizontal-composer-scroll
juliusmarminge Nov 14, 2026
f4424ec
test(web): cover sideways wheel gestures in one table
juliusmarminge Nov 14, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Next Next commit
fix(web): 横向滚动表格时保持输入框状态
- 排除横向占优和 Shift 滚轮事件,避免误触发输入框折叠及时间线跟随。\n- 保留纵向滚动和键盘行为,补充双向横滑回归测试。\n- 11 项定向测试及改动范围检查通过,隔离浏览器验证修复前后行为。
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@nateEc
nateEc committed Oct 23, 2026
commit 2ba8ae604aa76ab974a1debe0760e2446c70ac40

There are no files selected for viewing

2 changes: 1 addition & 1 deletion 2 apps/web/src/components/chat/ChatComposer.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)

const scrollNode = getTimelineScrollableNode();
if (!scrollNode) return;
const targetsTimeline = isTimelineScrollTarget(event.target, scrollNode, event.deltaY);
const targetsTimeline = isTimelineScrollTarget(event.target, scrollNode, event.deltaY, event);
if (
!scrollNode.contains(event.target) &&
!composerScrollGestureRef.current.collapseSuppressed
Expand Down
43 changes: 43 additions & 0 deletions 43 apps/web/src/components/chat/timelineScrollTarget.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,49 @@ beforeEach(() => {
afterEach(() => vi.unstubAllGlobals());

describe("timeline scroll targets", () => {
it("retains vertical wheel and keyboard scroll intent", () => {
const { timeline } = setup();
const content = new ScrollElement(timeline);
expect(
isTimelineScrollTarget(content, timeline as unknown as HTMLElement, -30, {
deltaX: 5,
shiftKey: false,
}),
).toBe(true);
expect(targetsTimeline(content, timeline, -30)).toBe(true);
expect(
isTimelineScrollTarget(content, timeline as unknown as HTMLElement, 0, {
deltaX: 80,
shiftKey: false,
}),
).toBe(false);
});
it.each([
{ deltaX: 80, deltaY: -30, shiftKey: false },
{ deltaX: -80, deltaY: 30, shiftKey: false },
{ deltaX: 0, deltaY: -30, shiftKey: true },
])("keeps horizontal gestures out of composer collapse and timeline follow: %j", (gesture) => {
const { timeline } = setup();
const table = new ScrollElement(timeline);
const targets = isTimelineScrollTarget(
table,
timeline as unknown as HTMLElement,
gesture.deltaY,
gesture,
);
expect(targets).toBe(false);
expect(
recordComposerScrollGestureEvent(createComposerScrollGestureState(), {
now: 0,
deltaPx: Math.abs(gesture.deltaY),
collapseThresholdPx: 24,
collapseEligible: targets,
canScrollInGestureDirection: true,
scrollsTowardLogicalEnd: false,
}),
).toBe(false);
});

it.each([-30, 30])("keeps a nested tool group's scroll out of the timeline: %i", (deltaY) => {
const { timeline, group, content } = setup();
expect(targetsTimeline(content, timeline, deltaY)).toBe(false);
Expand Down
3 changes: 3 additions & 0 deletions 3 apps/web/src/components/chat/timelineScrollTarget.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ export function isTimelineScrollTarget(
target: EventTarget | null,
timeline: HTMLElement,
deltaY: number,
wheel?: Pick<WheelEvent, "deltaX" | "shiftKey">,
): boolean {
if (!(target instanceof Element) || !timeline.contains(target) || deltaY === 0) return false;
// Shift-wheel scrolls sideways; trackpads can add vertical noise to a horizontal swipe.
if (wheel?.shiftKey || Math.abs(wheel?.deltaX ?? 0) > Math.abs(deltaY)) return false;

for (
let element: Element | null = target;
Expand Down
5 changes: 4 additions & 1 deletion 5 apps/web/src/components/chat/useTimelineFollow.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ export function useTimelineFollow(input: TimelineFollowInput) {
const viewportIsAwayFromEnd = () =>
resolveTimelineIsAtEnd(legendListRef.current?.getState()) === false;
const handleWheel = (event: WheelEvent) => {
if (event.ctrlKey || !isTimelineScrollTarget(event.target, scrollNode, event.deltaY))
if (
event.ctrlKey ||
!isTimelineScrollTarget(event.target, scrollNode, event.deltaY, event)
)
return;
if (event.deltaY > 0) {
timelineScrollIntentRef.current = "toward-end";
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.