Keep GPS watermark user-owned across presets; add pinch/double-tap zoom to photo preview; collapse chrome strip on WB selection

This commit is contained in:
2026-09-09 21:40:28 +07:00
parent 5799210949
commit f2de481708
4 changed files with 178 additions and 9 deletions
+9 -1
View File
@@ -122,12 +122,17 @@ export default function AdjustmentPanel({
const toggleParam = (key: string) => {
haptic();
// One auxiliary row at a time: opening a slider closes any option strip.
setOpenGroup(null);
onOpenParamChange(openParam === key ? null : key);
};
const toggleGroup = (g: GroupKey) => {
haptic();
setOpenGroup((prev) => (prev === g ? null : g));
const next = openGroup === g ? null : g;
// Opening an options strip closes any open slider row (single-row rule).
if (next) onOpenParamChange(null);
setOpenGroup(next);
};
const a = adjustments;
@@ -245,6 +250,9 @@ export default function AdjustmentPanel({
};
const wbApply = (val: string) => {
setWbChoice(val);
// Choosing a preset is a deliberate look switch: collapse any open chrome
// options strip so it never lingers above the chips row.
setOpenGroup(null);
const p = WB_PAIRS[val] ?? WB_PAIRS.auto;
onUpdateAdjustments({ temperature: p.t, tint: p.ti });
};