mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-17 01:29:43 +00:00
- Upgrading to Vite 7
- Refactor to use es modules - Added permission mode - Switched to better sqlite3 - several UX enhancements
This commit is contained in:
@@ -66,9 +66,13 @@ function Sidebar({
|
||||
const [editingSessionName, setEditingSessionName] = useState('');
|
||||
const [generatingSummary, setGeneratingSummary] = useState({});
|
||||
|
||||
// Touch handler to prevent double-tap issues on iPad
|
||||
// Touch handler to prevent double-tap issues on iPad (only for buttons, not scroll areas)
|
||||
const handleTouchClick = (callback) => {
|
||||
return (e) => {
|
||||
// Only prevent default for buttons/clickable elements, not scrollable areas
|
||||
if (e.target.closest('.overflow-y-auto') || e.target.closest('[data-scroll-container]')) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user