tweak: reduce swipe-up overlay speed from 2.5x to 1.5x for smoother feel

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-05-18 23:32:00 +02:00
1 parent eeb822bbb2
commit e47450b20d
1 file changed
+1 -1
+1 -1
View File
@@ -264,7 +264,7 @@ window.addEventListener('load', () => {
if(npOverlay) { if(npOverlay) {
npOverlay.style.transition = 'none'; npOverlay.style.transition = 'none';
// Overlay tracks finger with no cap: 2.5× speed so ~360px drag = fully open. // Overlay tracks finger with no cap: 2.5× speed so ~360px drag = fully open.
npOverlay.style.transform = `translateY(${Math.max(0, window.innerHeight - dy * 2.5)}px)`; npOverlay.style.transform = `translateY(${Math.max(0, window.innerHeight - dy * 1.5)}px)`;
} }
}, {passive:true}); }, {passive:true});