Preserve prompt edits during timeline drag
This commit is contained in:
@@ -127,7 +127,12 @@ function configure(node) {
|
||||
slot.end = point; next.start = point; updateTimeline();
|
||||
};
|
||||
handle.onpointerdown = (event) => {
|
||||
event.preventDefault(); handle.setPointerCapture?.(event.pointerId);
|
||||
event.preventDefault();
|
||||
// Textarea edits are intentionally committed on change, but a
|
||||
// drag can happen while it still has focus. Capture them before
|
||||
// the timeline redraws the prompt from state.
|
||||
if (prompt) syncPrompt(clip, prompt.value);
|
||||
handle.setPointerCapture?.(event.pointerId);
|
||||
handle.onpointermove = move;
|
||||
handle.onpointerup = () => { handle.onpointermove = null; setState(); render(); };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user