mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-03 21:43:12 +00:00 
			
		
		
		
	navpane enabled by default on non-touch devices
This commit is contained in:
		@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user