The reader rebuilds its scroller when an item opens on a phone (#450)
Every scroll_stuck report since the added fields was a short drag over text in a reader whose content had just been swapped, with nothing over it, nothing inert and the touch left alone by the page: iOS kept the drag and did not scroll. That fits WebKit keeping an overflow box's scroller sized for what was there before. Overflow is taken away for two frames after each open, and after a stuck drag is caught, so the scroller is built again; the report now says how long since the last one, which tells whether this freed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
@@ -3306,6 +3306,16 @@ test.describe('on a phone', () => {
|
||||
await expect(row.locator('.pinmark')).toHaveCount(0);
|
||||
});
|
||||
|
||||
test('the reader opened on a phone has its scroller back two frames on, and scrolls (#450)', async ({ page }) => {
|
||||
await page.locator('#burger').click();
|
||||
await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click({ timeout: 20_000 });
|
||||
await page.locator('#content .tabs button[data-f="all"]').click();
|
||||
await page.locator('#eps .ep .t').first().click();
|
||||
const d = page.locator('#detail');
|
||||
await expect.poll(() => d.evaluate(el => getComputedStyle(el).overflowY)).toBe('auto');
|
||||
expect(await d.evaluate(el => el.style.overflowY)).toBe('');
|
||||
});
|
||||
|
||||
test('a page of its own starts its header where a podcast\'s does (#485)', async ({ page }) => {
|
||||
const artX = async (id: string) => {
|
||||
await page.evaluate(id => { selectFeed(id); nav(false); }, id);
|
||||
|
||||
Reference in New Issue
Block a user