tweak: keep player bar static during swipe-up; improve title/album/artist spacing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
32036b7312
commit
2553534cc8
2 files changed
+3
-7
No files matched your search
@@ -220,7 +220,6 @@ window.addEventListener('load', () => {
|
||||
|
||||
function _resetDrag(open) {
|
||||
playerBar.classList.remove('dragging');
|
||||
playerBar.style.transform = '';
|
||||
|
||||
if (!npOverlay) { if(open) openNowPlaying(); _sy=0; _dragging=false; return; }
|
||||
|
||||
@@ -257,10 +256,6 @@ window.addEventListener('load', () => {
|
||||
const dy = _sy - e.touches[0].clientY;
|
||||
if(dy < 5) return;
|
||||
_dragging = true;
|
||||
playerBar.classList.add('dragging');
|
||||
// Player bar rises up to its own height, then stops — no need to travel further.
|
||||
const barH = playerBar.offsetHeight || 72;
|
||||
playerBar.style.transform = `translateY(${-Math.min(dy, barH)}px)`;
|
||||
if(npOverlay) {
|
||||
npOverlay.style.transition = 'none';
|
||||
// Overlay tracks finger with no cap: 2.5× speed so ~360px drag = fully open.
|
||||
|
||||
Reference in new issue
Block a user