3a81e09911
Wide or tall tables, code blocks and display equations overflowed the reading column and a scroll gesture over them turned the page instead of scrolling the content (#4400). - Wrap tables and display equations in a horizontally/vertically scrollable container; route touch + wheel along the box's scrollable axis so it scrolls the box and never turns the page, even at the edge (both axes). - A box that fits its column is marked fit (overflow:visible) so it never clips or captures gestures; the fit decision is measured once after layout via a self-disconnecting ResizeObserver, so it never relayerizes during a page turn. - The scroll wrapper carries a new cfi-skip attribute that makes it transparent to CFI: epubcfi.js hoists a cfi-skip node's children into its parent (unlike cfi-inert which drops the subtree), and xcfi.ts mirrors this for CFI<->XPointer so existing highlights, bookmarks and KOSync positions inside a wrapped table or equation still resolve. The sanitizer whitelists cfi-skip. - Bump foliate-js submodule (cfi-skip support + raf fallback for large sections). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"name": "@readest/monorepo",
|
|
"private": true,
|
|
"repository": "readest/readest",
|
|
"scripts": {
|
|
"test": "pnpm --filter @readest/readest-app test",
|
|
"test:lua": "pnpm --filter @readest/readest-app test:lua",
|
|
"lint": "pnpm --filter @readest/readest-app lint",
|
|
"lint:lua": "pnpm --filter @readest/readest-app lint:lua",
|
|
"tauri": "pnpm --filter @readest/readest-app tauri",
|
|
"dev-web": "pnpm --filter @readest/readest-app dev-web",
|
|
"prepare": "husky",
|
|
"fmt:check": "pnpm --filter @readest/readest-app fmt:check",
|
|
"clippy:check": "pnpm --filter @readest/readest-app clippy:check",
|
|
"worktree:new": "pnpm --filter @readest/readest-app worktree:new",
|
|
"worktree:rm": "pnpm --filter @readest/readest-app worktree:rm",
|
|
"format": "biome format --write .",
|
|
"format:check": "biome format ."
|
|
},
|
|
"packageManager": "pnpm@11.1.1",
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.9",
|
|
"@sindresorhus/tsconfig": "^6.0.0",
|
|
"husky": "^9.1.6",
|
|
"lint-staged": "^16.2.7",
|
|
"typescript": "^5"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,jsx,ts,tsx,css,json}": [
|
|
"biome format --write --no-errors-on-unmatched"
|
|
]
|
|
}
|
|
}
|