diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 81662f4c..636e1cf8 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -2117,6 +2117,7 @@ html { opacity: 0; background: #8888; cursor: ew-resize; + touch-action: none; } #reszbar:hover{ opacity: .6; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 4d73cb6d..902c72ff 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -11252,7 +11252,8 @@ function reload_browser() { } resizing = true; clmod(ebi('tree'), 'resz', true); - ev(e); + if(e.cancelable) + ev(e); return; } if (e.button !== 0 && e.type !== 'touchstart') return; @@ -11293,13 +11294,13 @@ function reload_browser() { } function sel_move(e) { - var pos = getpp(e); if(resizing){ var em2px = parseFloat(getComputedStyle(document.body).fontSize); - treectl.settreesize(e.clientX / em2px); + treectl.settreesize(getpp(e).x / em2px); return; } if (!is_selma) return; + var pos = getpp(e); var dist = Math.sqrt(Math.pow(pos.x - startx, 2) + Math.pow(pos.y - starty, 2)); if (e.type === 'touchmove' && ttimer) {