update the loading issue
This commit is contained in:
@@ -154,11 +154,11 @@ export default function OptimizationSection() {
|
||||
if (!el) return;
|
||||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
// NOTE: /miletruth runs on native scroll (no Lenis). Smooth-scrolling this
|
||||
// page fought the three stacked pinned WebGL sections and caused scroll lag;
|
||||
// global Lenis (src/animations/SmoothScroll.tsx) is intentionally disabled on
|
||||
// this route. ScrollTrigger's scrub + self-managed fixed pin work as-is on
|
||||
// native scroll.
|
||||
// NOTE: global Lenis (src/animations/SmoothScroll.tsx) is active on this
|
||||
// route. Because the pin is a self-managed `position: fixed` driven by
|
||||
// `self.progress` (not a GSAP pin-spacer) and Lenis scrolls the real
|
||||
// document hooked to ScrollTrigger.update, the scrub + fixed pin work
|
||||
// unchanged under smooth scroll.
|
||||
let lastPhase: PhaseKey = "chaos";
|
||||
let lastPin: "before" | "pinned" | "after" = "before";
|
||||
const st = ScrollTrigger.create({
|
||||
|
||||
Reference in New Issue
Block a user