forked from open-webui/open-webui
refac: gesture sensitivity
This commit is contained in:
parent
a2edd2d911
commit
180fd44a4d
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
||||||
function checkDirection() {
|
function checkDirection() {
|
||||||
const screenWidth = window.innerWidth;
|
const screenWidth = window.innerWidth;
|
||||||
const swipeDistance = Math.abs(touchend.screenX - touchstart.screenX);
|
const swipeDistance = Math.abs(touchend.screenX - touchstart.screenX);
|
||||||
if (touchstart.clientX < 40 && swipeDistance >= screenWidth / 4) {
|
if (touchstart.clientX < 40 && swipeDistance >= screenWidth / 8) {
|
||||||
if (touchend.screenX < touchstart.screenX) {
|
if (touchend.screenX < touchstart.screenX) {
|
||||||
showSidebar.set(false);
|
showSidebar.set(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue