main
|
Last change
on this file since 834bcc3 was 834bcc3, checked in by Robin Genis <roboburr@…>, 3 months ago |
|
i18n: translate Dutch code comments to English across src/
Comments in routes/services/views/config/middleware/assets translated to
English for the public repo. A few dev-facing throw/console message strings
were Englished too. No user-facing UI strings or i18n dictionary values changed
(src/services/i18n.js untouched). Logic unchanged.
Co-Authored-By: Claude <noreply@…>
|
-
Property mode
set to
100644
|
|
File size:
652 bytes
|
| Line | |
|---|
| 1 | /* Klonkt — Lenis smooth wheel scroll init (desktop only) */
|
|---|
| 2 | (function () {
|
|---|
| 3 | if (typeof Lenis === "undefined") return;
|
|---|
| 4 | // Skip on touch/mobile — native momentum scroll is better than a JS lib
|
|---|
| 5 | var isMobile = window.matchMedia("(pointer: coarse)").matches || window.innerWidth < 1024;
|
|---|
| 6 | if (isMobile) return;
|
|---|
| 7 | var lenis = new Lenis({
|
|---|
| 8 | duration: 1.0,
|
|---|
| 9 | easing: function (t) { return Math.min(1, 1.001 - Math.pow(2, -10 * t)); },
|
|---|
| 10 | smoothWheel: true,
|
|---|
| 11 | wheelMultiplier: 1.0,
|
|---|
| 12 | touchMultiplier: 2.0,
|
|---|
| 13 | });
|
|---|
| 14 | function raf(time) { lenis.raf(time); requestAnimationFrame(raf); }
|
|---|
| 15 | requestAnimationFrame(raf);
|
|---|
| 16 | window.lenis = lenis;
|
|---|
| 17 | })();
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.