fix: keep preview retry controls stationary during pointer activation
This commit is contained in:
@@ -625,6 +625,8 @@ export default function CvBuilderEditor() {
|
||||
|
||||
<Paper variant="outlined" onFocusCapture={(event) => {
|
||||
setMobilePane("preview");
|
||||
// Moving a pointer-focused control here can cancel its pending click.
|
||||
if (event.target !== scrollRef.current) return;
|
||||
const pane = event.currentTarget;
|
||||
requestAnimationFrame(() => {
|
||||
if (pane.contains(document.activeElement)) pane.scrollIntoView?.({ block: "start", inline: "nearest" });
|
||||
|
||||
Reference in New Issue
Block a user