mirror of
https://github.com/open-webui/open-webui
synced 2025-04-16 13:39:39 +00:00
refac
This commit is contained in:
parent
2a79c30657
commit
f6e839611b
@ -62,14 +62,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('touchstart', (e) => {
|
const onTouchStart = (e) => {
|
||||||
touchstartX = e.changedTouches[0].screenX;
|
touchstartX = e.changedTouches[0].screenX;
|
||||||
});
|
};
|
||||||
|
|
||||||
document.addEventListener('touchend', (e) => {
|
const onTouchEnd = (e) => {
|
||||||
touchendX = e.changedTouches[0].screenX;
|
touchendX = e.changedTouches[0].screenX;
|
||||||
checkDirection();
|
checkDirection();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
document.addEventListener('touchstart', onTouchStart);
|
||||||
|
document.addEventListener('touchend', onTouchEnd);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
document.removeEventListener('touchstart', onTouchStart);
|
||||||
|
document.removeEventListener('touchend', onTouchEnd);
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
// Helper function to fetch and add chat content to each chat
|
// Helper function to fetch and add chat content to each chat
|
||||||
|
Loading…
Reference in New Issue
Block a user