From 48d9de03fee2dea6ea885fd65dd9f415da0c2937 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 15 Aug 2026 21:38:51 +0000 Subject: [PATCH] whitespace --- copyparty/web/browser.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index d57fc3ee..ef0d7a88 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1792,7 +1792,7 @@ function MPlayer() { continue; tid = tid.slice(1); - if (r.tracks[tid]) + if (r.tracks[tid]) order.push(tid); } r.order = order; @@ -10030,19 +10030,19 @@ function reload_browser() { var selbox = null; var ttimer = null; - var lpdelay = 250; + var lpdelay = 250; var mvthresh = 44; function unbox() { qsr('.selbox'); ebi('gfiles').style.removeProperty('pointer-events') ebi('wrap').style.removeProperty('user-select') - + if (selbox) { console.log(selbox) window.getSelection().removeAllRanges(); } - + is_selma = false; dragging = false; fwrap = null; @@ -10085,7 +10085,7 @@ function reload_browser() { starty = pos.y; is_selma = true; ttimer = null; - + if (e.type === 'touchstart') { ttimer = setTimeout(function() { ttimer = null; @@ -10093,7 +10093,7 @@ function reload_browser() { }, lpdelay); } } - + function start_drag() { if (dragging) return; @@ -10104,7 +10104,7 @@ function reload_browser() { ebi('gfiles').style.pointerEvents = 'none'; } - + function sel_move(e) { if (!is_selma) return; var pos = getpp(e); @@ -10121,7 +10121,7 @@ function reload_browser() { if (!dragging && dist > mvthresh && !window.getSelection().toString()) { if (e.target instanceof Element) fwrap = e.target.closest('#wrap'); - if (fwrap) + if (fwrap) fwrap.style.userSelect = 'none'; else return; start_drag(); @@ -10170,7 +10170,7 @@ function reload_browser() { } }); } - + dsel_init(); })(); @@ -10213,7 +10213,7 @@ var mpss = (function() { var gain = afilt.ssg.gain; var duration = ae.duration || 0; - + var slimit = duration * (config.sthresh / 100); var elimit = duration * (1 - (config.etresh / 100)); var in_limits = ae.currentTime < slimit || ae.currentTime > elimit;