QoL v0ck and tagging

This commit is contained in:
2026-06-19 14:20:15 +02:00
parent c051df18c2
commit 06564af203
2 changed files with 5 additions and 12 deletions

View File

@@ -5908,7 +5908,6 @@ input {
.tag-ac-input { .tag-ac-input {
font-size: inherit; font-size: inherit;
padding: 0 4px;
min-width: 80px; min-width: 80px;
background-color: var(--badge-tag); background-color: var(--badge-tag);
color: #fff; color: #fff;

View File

@@ -441,7 +441,7 @@ class v0ck {
} }
}, { passive: false }); }, { passive: false });
// Desktop mouse volume gesture support (clicking and dragging vertically on the right half of the player) // Desktop mouse volume gesture support (clicking and dragging vertically on the player)
let activeMouseGesture = false; let activeMouseGesture = false;
player.addEventListener('mousedown', e => { player.addEventListener('mousedown', e => {
@@ -451,17 +451,11 @@ class v0ck {
const isControls = !!path.filter(f => f.classList?.contains('v0ck_player_controls')).length; const isControls = !!path.filter(f => f.classList?.contains('v0ck_player_controls')).length;
if (isControls) return; if (isControls) return;
const rect = player.getBoundingClientRect();
const x = e.clientX - rect.left;
isRightSide = x > rect.width / 2;
gestureType = 'none'; gestureType = 'none';
if (isRightSide) {
startX = e.clientX; startX = e.clientX;
startY = e.clientY; startY = e.clientY;
startVol = video.volume; startVol = video.volume;
activeMouseGesture = true; activeMouseGesture = true;
}
}); });
window.addEventListener('mousemove', e => { window.addEventListener('mousemove', e => {