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:
1 parent
ae34597847
commit
82374ebfdd
38 files changed
+46
-38
No files matched your search
@@ -51,7 +51,7 @@ location.assign(url.href);
|
||||
event.stopImmediatePropagation();
|
||||
},true);
|
||||
})();</script><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/images/hero.png"/><meta name="theme-color" content="#0D0D0D"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="apple-mobile-web-app-title" content="AlterFlixHub"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><link rel="manifest" href="/manifest.json"/><link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png"/><title>AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย</title><meta name="description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"/><link rel="canonical" href="https://alterflixhub.hobbypj.com/"/><meta property="og:type" content="website"/><meta property="og:site_name" content="AlterFlixHub"/><meta property="og:locale" content="th_TH"/><meta property="og:title" content="AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย"/><meta property="og:description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta property="og:url" content="https://alterflixhub.hobbypj.com/"/><meta property="og:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:image:alt" content="AlterFlixHub"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย"/><meta name="twitter:description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta name="twitter:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><link rel="modulepreload" href="/assets/manifest-3ed6c1bd.js"/><link rel="modulepreload" href="/assets/entry.client-CrdiPMsF.js"/><link rel="modulepreload" href="/assets/react-B8IZ02wI.js"/><link rel="modulepreload" href="/assets/api-path-DiLUeLL2.js"/><link rel="modulepreload" href="/assets/client-BXMKfmWK.js"/><link rel="modulepreload" href="/assets/react-dom-0ZK-Lw7i.js"/><link rel="modulepreload" href="/assets/components-LggAOTeO.js"/><link rel="modulepreload" href="/assets/components-BPFOGuol.js"/><link rel="modulepreload" href="/assets/jsx-runtime-fBfwind-.js"/><link rel="modulepreload" href="/assets/preload-helper-CZgWQFsJ.js"/><link rel="modulepreload" href="/assets/root-CJibcm3H.js"/><link rel="modulepreload" href="/assets/IconCheck-B3jDJthn.js"/><link rel="modulepreload" href="/assets/analytics-hbCOwHmS.js"/><link rel="modulepreload" href="/assets/share-origin-COlEIvGo.js"/><link rel="modulepreload" href="/assets/app-config-4aQIl_Vd.js"/><link rel="modulepreload" href="/assets/motion-DOH2EXPt.js"/><link rel="modulepreload" href="/assets/use-session-DJs-YY25.js"/><link rel="modulepreload" href="/assets/createReactComponent-C-DRqPhY.js"/><link rel="modulepreload" href="/assets/messages-nFlHChGW.js"/><link rel="modulepreload" href="/assets/optional-peer-BHoJSOIB.js"/><link rel="modulepreload" href="/assets/session-replay-endpoint-CkXvYk-L.js"/><link rel="modulepreload" href="/assets/_index-g0X6vG1R.js"/><link rel="modulepreload" href="/assets/CinemaGrid-DJMjtFke.js"/><link rel="modulepreload" href="/assets/SiteShell-DHgUrms6.js"/><link rel="modulepreload" href="/assets/seo-CukKNP_H.js"/><link rel="modulepreload" href="/assets/cinemas-CTA3vCte.js"/><link rel="modulepreload" href="/assets/footer-icons-kTf1LTdH.js"/><script>(function(){var root=document.documentElement;var fallback="original";try{var value=window.localStorage.getItem("theme-family:__no_app_id__");if(value===null){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'awaiting-app-setting');return}if(value==='agent-native'||value==='original'){root.setAttribute("data-theme-family",value);root.removeAttribute("data-theme-family-status");return}root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'invalid')}catch(e){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'unreadable')}})();
|
||||
(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme="system";var enableSystem=true;var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();</script><script>(function(){try{var m=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)");if(m&&m.matches){return}document.documentElement.classList.add("fx-motion")}catch(e){}})();</script><script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://alterflixhub.hobbypj.com/#website","url":"https://alterflixhub.hobbypj.com/","name":"AlterFlixHub","description":"รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว พร้อมที่ตั้ง วิธีเดินทาง สิ่งอำนวยความสะดวก และปุ่มหาภาพยนตร์โรงใกล้ฉัน","inLanguage":"th-TH","publisher":{"@id":"https://alterflixhub.hobbypj.com/#organization"},"potentialAction":{"@type":"SearchAction","target":"https://alterflixhub.hobbypj.com/?q={search_term_string}","query-input":"required name=search_term_string"}},{"@type":"Organization","@id":"https://alterflixhub.hobbypj.com/#organization","name":"AlterFlixHub","url":"https://alterflixhub.hobbypj.com/","logo":"https://alterflixhub.hobbypj.com/icon-512.png"}]}</script><link rel="stylesheet" href="/assets/global-DjioL_Jq.css"/><script data-agent-native-sentry-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"deploymentEnvironment":"production"});</script><script data-agent-native-app-origin-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"appHomePath":"/"});</script></head><body><div class="flex h-screen w-full flex-col overflow-hidden bg-background text-foreground"><main class="agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain"><div class="relative flex min-h-dvh w-full flex-col overflow-x-hidden bg-[#0D0D0D] text-white"><div aria-hidden="true" class="pointer-events-none absolute inset-0 overflow-hidden"><img src="/images/hero.png" alt="" class="fx-hero-image pointer-events-none absolute inset-x-0 top-0 h-[553px] w-full object-cover"/><div class="pointer-events-none absolute inset-x-0 top-0 h-[553px] bg-gradient-to-b from-transparent via-[#0D0D0D]/60 to-[#0D0D0D]"></div><div class="pointer-events-none absolute left-1/2 top-0 size-[382px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#8F0808] blur-[237px]"></div><div class="pointer-events-none absolute bottom-[-140px] left-1/2 size-[382px] -translate-x-1/2 rounded-full bg-[#4C0404]/70 blur-[237px]"></div></div><header class="fx-drop relative z-10 mx-auto flex h-[68px] w-full max-w-[1440px] items-center justify-between gap-3 px-5 md:px-[108px]"><a aria-label="AlterFlixHub — หน้าแรก" class="shrink-0" href="/" data-discover="true"><span class="font-['Jersey_15'] leading-none text-4xl " style="font-family:'Jersey 15', sans-serif;color:#8F0808">AlterFlixHub</span></a><div class="flex items-center gap-1.5 sm:gap-2"><details class="group relative sm:hidden"><summary class="flex min-h-10 cursor-pointer list-none items-center rounded-lg border border-[#303030] px-3 text-sm text-[#B3B3B3] tLine truncated
|
||||
(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme="system";var enableSystem=true;var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();</script><script>(function(){try{var m=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)");if(m&&m.matches){return}document.documentElement.classList.add("fx-motion")}catch(e){}})();</script><script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://alterflixhub.hobbypj.com/#website","url":"https://alterflixhub.hobbypj.com/","name":"AlterFlixHub","description":"รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว พร้อมที่ตั้ง วิธีเดินทาง สิ่งอำนวยความสะดวก และปุ่มหาภาพยนตร์โรงใกล้ฉัน","inLanguage":"th-TH","publisher":{"@id":"https://alterflixhub.hobbypj.com/#organization"},"potentialAction":{"@type":"SearchAction","target":"https://alterflixhub.hobbypj.com/?q={search_term_string}","query-input":"required name=search_term_string"}},{"@type":"Organization","@id":"https://alterflixhub.hobbypj.com/#organization","name":"AlterFlixHub","url":"https://alterflixhub.hobbypj.com/","logo":"https://alterflixhub.hobbypj.com/icon-512.png"}]}</script><link rel="stylesheet" href="/assets/global-47009994.css"/><script data-agent-native-sentry-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"deploymentEnvironment":"production"});</script><script data-agent-native-app-origin-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"appHomePath":"/"});</script></head><body><div class="flex h-screen w-full flex-col overflow-hidden bg-background text-foreground"><main class="agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain"><div class="relative flex min-h-dvh w-full flex-col overflow-x-hidden bg-[#0D0D0D] text-white"><div aria-hidden="true" class="pointer-events-none absolute inset-0 overflow-hidden"><img src="/images/hero.png" alt="" class="fx-hero-image pointer-events-none absolute inset-x-0 top-0 h-[553px] w-full object-cover"/><div class="pointer-events-none absolute inset-x-0 top-0 h-[553px] bg-gradient-to-b from-transparent via-[#0D0D0D]/60 to-[#0D0D0D]"></div><div class="pointer-events-none absolute left-1/2 top-0 size-[382px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#8F0808] blur-[237px]"></div><div class="pointer-events-none absolute bottom-[-140px] left-1/2 size-[382px] -translate-x-1/2 rounded-full bg-[#4C0404]/70 blur-[237px]"></div></div><header class="fx-drop relative z-10 mx-auto flex h-[68px] w-full max-w-[1440px] items-center justify-between gap-3 px-5 md:px-[108px]"><a aria-label="AlterFlixHub — หน้าแรก" class="shrink-0" href="/" data-discover="true"><span class="font-['Jersey_15'] leading-none text-4xl " style="font-family:'Jersey 15', sans-serif;color:#8F0808">AlterFlixHub</span></a><div class="flex items-center gap-1.5 sm:gap-2"><details class="group relative sm:hidden"><summary class="flex min-h-10 cursor-pointer list-none items-center rounded-lg border border-[#303030] px-3 text-sm text-[#B3B3B3] tLine truncated
|
||||
import * as route0 from "/assets/root-CJibcm3H.js";
|
||||
import * as route1 from "/assets/_index-g0X6vG1R.js";
|
||||
|
||||
|
||||
Reference in new issue
Block a user