mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: gesture sensitivity
This commit is contained in:
parent
a2edd2d911
commit
180fd44a4d
@ -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 New Issue
Block a user