navpane enabled by default on non-touch devices

This commit is contained in:
ed 2021-11-04 01:35:05 +01:00
parent ac1568cacf
commit 49368a10ba

View file

@ -907,7 +907,7 @@ var vbar = (function () {
if (e.button === 0) if (e.button === 0)
can.onmousemove = null; can.onmousemove = null;
}; };
if (window.Touch) { if (is_touch) {
can.ontouchstart = mousedown; can.ontouchstart = mousedown;
can.ontouchmove = mousemove; can.ontouchmove = mousemove;
} }
@ -3502,7 +3502,9 @@ var treectl = (function () {
ebi('visdir').onclick = tree_scrollto; ebi('visdir').onclick = tree_scrollto;
ebi('twig').onclick = scaletree; ebi('twig').onclick = scaletree;
ebi('twobytwo').onclick = scaletree; ebi('twobytwo').onclick = scaletree;
if (sread('entreed') == 'tree')
var cs = sread('entreed');
if ((is_touch && cs == 'tree') || (!is_touch && cs != 'na'))
treectl.entree(); treectl.entree();
window.onpopstate = function (e) { window.onpopstate = function (e) {