Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
180fd44a
Commit
180fd44a
authored
May 02, 2024
by
Timothy J. Baek
Browse files
refac: gesture sensitivity
parent
a2edd2d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+1
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
180fd44a
...
@@ -54,7 +54,7 @@
...
@@ -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);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment