Keep draw pen settings inside DrawCanvas

Only the Reader's canvas uses them now. A module-level lastPen keeps the
chosen tool/color/size when Draw mode is toggled off and on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Opus 5.5 committed 2026-09-22 14:53:17 -04:00
1 parent a7e00a76b5
commit 365fb1b567
2 files changed
+7 -8

No files matched your search

-6
View File
@@ -147,9 +147,6 @@ const App = () => {
const saved = localStorage.getItem('studyLayout');
return saved === 'stacked' ? 'stacked' : 'split'; // 'annotate' (Draw) was removed
}); // 'stacked' | 'split'
const [drawTool, setDrawTool] = useState('pen');
const [drawColor, setDrawColor] = useState('#0f172a');
const [drawSize, setDrawSize] = useState(0.003);
const [activeStudyTab, setActiveStudyTab] = useState(
() => localStorage.getItem('activeStudyTab') || 'notes',
);
@@ -1676,9 +1673,6 @@ const App = () => {
selectedChunkVerses,
selectedChunkGlobalIndex,
studyLayout, setStudyLayout,
drawTool, setDrawTool,
drawColor, setDrawColor,
drawSize, setDrawSize,
activeStudyTab, setActiveStudyTab,
mobileStudyTab, setMobileStudyTab,
collapsedSections, setCollapsedSections,