fix(scroll): mouse wheel did not scroll the page

main.agent-native-app-main is a scroll container (overflow-y:auto +
overscroll-contain) whose content equals its own height, so it swallowed the
wheel and the document never scrolled; the site wrapper's overflow-x:hidden
also made its overflow-y compute to auto. Neutralise both scrollers so the
document is the only scroller (overflow-x:clip keeps horizontal clipping).

Cache safety: the patched CSS kept its old hashed filename, and nginx served
/assets/* as immutable for a year, so visitors with the earlier CSS could
never receive the fix. Renamed the stylesheet to a content hash and updated
34 HTML references, switched /assets/ to no-cache (revalidate, 304), bumped
sw.js VERSION to v2.1.2. docs/deploy-dokploy.md updated.
This commit is contained in:
Bkk1234 committed 2026-11-22 22:52:17 +07:00
1 parent ae34597847
commit 82374ebfdd
38 files changed
+46 -38

No files matched your search

+5 -2
View File
@@ -51,10 +51,13 @@ server {
try_files $uri =404;
}
# ── asset ที่ชื่อมี hash: cache ได้ยาวและ immutable ────────────────────
# ── asset JS/CSS/FONT: revalidate ทุกครั้ง (ไม่ใช้ immutable) ──────────
# ในโหมด publish static export เรามัก patch ไฟล์ใน /assets/ ด้วยมือโดยชื่อไฟล์เดิม
# → ถ้า cache ยาว เครื่องที่เคยโหลดจะค้างไฟล์เก่าเป็นปี (เคสจริง: CSS scroll/wheel fix ไม่ถึงผู้ใช้)
# no-cache = ยังแคชได้ แต่ revalidate ทุกครั้ง (304 ราคาถูก) · ไฟล์ที่มี hash ใหม่จะถูกโหลดทันที
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable" always;
include snippets/security-headers.conf;
add_header Cache-Control "no-cache" always;
try_files $uri =404;
}