"src/vscode:/vscode.git/clone" did not exist on "24403aea73bc160a60f20a8f09c1dfb9eb84bb89"
Commit f6e83961 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 2a79c306
...@@ -62,14 +62,22 @@ ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment