← Winnitude! Search  ·  Reader Mode (1984 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 43 LINKS

Translate 'Browser default actions' to Portuguese by diogoosz · Pull Request #513 · javascript-tutorial/pt.javascript.info

Repository navigation

Translate 'Browser default actions' to Portuguese - #513


Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-default-browser-action Nov 22, 2026
Merged

Translate 'Browser default actions' to Portuguese #513 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-default-browser-action

Conversation

diogoosz commented Nov 22, 2026 · edited Loading



Copy link Copy Markdown
Contributor

Resumo

Traduz o artigo "Browser default actions" para o português, incluindo os 3 exercícios desta pasta e a demo menu.view referenciada pelo próprio iframe do artigo. Não há SVGs neste capítulo.

Conforme comentado na #1 .

Plano de teste

  • Diff de todos os trechos de código (code spans) entre o original em inglês e a tradução.
  • Grep em busca de falsos cognatos conhecidos e registro informal.
  • Releitura manual completa para checar sentido e concordância.
Translate 'Browser default actions' article to Portuguese bbc7235
Includes all 3 exercise subfolders and the menu.view demo referenced by
the article's own iframe. No SVGs in this chapter.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
gabifs mentioned this pull request Nov 22, 2026 Portuguese Translation Progress #1 Open gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/2-events/04-default-browser-action/article.md
Outdated
- Pressionar o botão do mouse sobre um texto e movê-lo -- seleciona o texto .

If we handle an event in JavaScript, we may not want the corresponding browser action to happen, and want to implement another behavior instead .
Se tratarmos um evento em JavaScript, podemos não querer que a ação correspondente do navegador aconteça, e queremos implementar outro comportamento em vez disso .
gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/2-events/04-default-browser-action/article.md
Por que isso pode ser necessário ?

There are some events like `touchmove` on mobile devices (when the user moves their finger across the screen ), that cause scrolling by default, but that scrolling can be prevented using `preventDefault()` in the handler .
Há alguns eventos como `touchmove` em dispositivos móveis (quando o usuário move o dedo pela tela ), que causam rolagem por padrão, mas essa rolagem pode ser prevenida usando `preventDefault()` no manipulador .
gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/2-events/04-default-browser-action/3-image-gallery/solution.md
Outdated
@@ -1 +1 @@
The solution is to assign the handler to the container and track clicks. If a click is on the `<a>` link, then change `src` of `#largeImg` to the `href` of the thumbnail .
A solução é atribuir o manipulador ao container e rastrear os cliques. Se um clique for no link `<a>` , então muda o `src` de `#largeImg` para o `href` da miniatura .
Apply review suggestions from gabifs 32cc618
- Keep "may" applying to both halves of the sentence instead of
  turning the second clause into a flat statement
- Avoid "opção opcional" redundancy
- Use imperative "mude" to match the instruction in the original
  and the tutorial's established style

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

diogoosz commented Nov 22, 2026



Copy link Copy Markdown
Contributor

Author

Obrigado pela revisão, @gabifs ! Corrigido:

  • "may" aplicado às duas partes da frase, em vez de virar uma afirmação na segunda
  • Removida a redundância "opção opcional"
  • "mude" no imperativo, pra combinar com a instrução do original
gabifs approved these changes Nov 22, 2026
View reviewed changes

gabifs left a comment



Copy link Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Todas as sugestões foram aplicadas. Obrigado pela tradução, @diogoosz ! 🎉

gabifs merged commit 1cd93b7 into javascript-tutorial : master Nov 22, 2026 1 check passed Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants