File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ export default function App() {
222222 const onFontSizeChange = useCallback ( ( v : number ) => setFontSize ( clampZoom ( v ) ) , [ ] ) ;
223223 const onToggleVisualEdits = useCallback ( ( ) => {
224224 setVisualEditsEnabled ( ( v ) => {
225- // Ao desativar, fecha o menu hierárquico aberto (se houver).
226225 if ( v ) setVeMenu ( null ) ;
227226 return ! v ;
228227 } ) ;
@@ -256,14 +255,12 @@ export default function App() {
256255 setPanelSplit ( s ) ;
257256 } , [ ] ) ;
258257
259- // Recebe clique do Visual Edits no preview (coords já em window space).
260258 const onVisualEditsLocate = useCallback (
261259 ( loc : string , screenX : number , screenY : number ) => {
262260 const m = / ^ ( \d + ) - ( \d + ) $ / . exec ( loc ) ;
263261 if ( ! m ) return ;
264262 const entry = renderedRef . current ?. contributors ?. [ loc ] ;
265263 if ( ! entry || entry . items . length === 0 ) {
266- // Nada a desambiguar: pula direto pro literal clicado.
267264 editorRef . current ?. scrollAndSelect ( parseInt ( m [ 1 ] , 10 ) , parseInt ( m [ 2 ] , 10 ) ) ;
268265 setVeMenu ( null ) ;
269266 return ;
You can’t perform that action at this time.
0 commit comments