mirror of
https://github.com/9001/copyparty.git
synced 2026-02-27 05:53:11 -07:00
dsel: substractive select
This commit is contained in:
parent
f6250d967e
commit
394a07c786
|
|
@ -9790,9 +9790,7 @@ function reload_browser() {
|
||||||
return { x: touch.clientX, y: touch.clientY };
|
return { x: touch.clientX, y: touch.clientY };
|
||||||
}
|
}
|
||||||
|
|
||||||
function sel_toggle(el, usel) {
|
function sel_toggle(el, m) {
|
||||||
var m = usel ? true : 't';
|
|
||||||
|
|
||||||
clmod(el, 'sel', m);
|
clmod(el, 'sel', m);
|
||||||
var eref = el.getAttribute('ref');
|
var eref = el.getAttribute('ref');
|
||||||
if (eref) {
|
if (eref) {
|
||||||
|
|
@ -9902,9 +9900,10 @@ function reload_browser() {
|
||||||
if (selbox) {
|
if (selbox) {
|
||||||
var sbrect = selbox.getBoundingClientRect();
|
var sbrect = selbox.getBoundingClientRect();
|
||||||
var faf = QSA('#ggrid a');
|
var faf = QSA('#ggrid a');
|
||||||
|
var sadmode = e.shiftKey ? true : e.altKey ? false : "t";
|
||||||
for (var a = 0, aa = faf.length; a < aa; a++)
|
for (var a = 0, aa = faf.length; a < aa; a++)
|
||||||
if (bob(sbrect, faf[a].getBoundingClientRect()))
|
if (bob(sbrect, faf[a].getBoundingClientRect()))
|
||||||
sel_toggle(faf[a], e.shiftKey);
|
sel_toggle(faf[a], sadmode);
|
||||||
msel.selui();
|
msel.selui();
|
||||||
}
|
}
|
||||||
ev(e);
|
ev(e);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue