Open
Conversation
Violet-Bora-Lee
requested changes
Oct 8, 2022
Member
Violet-Bora-Lee
left a comment
There was a problem hiding this comment.
번역기를 돌린것같이 잘 이해되지 않는 문장이 있어서
이 부분을 개선 요청드립니다.
제가 맞춤법 검사기는 돌리지 않고 번역하여서
마지막에 맞춤법검사기 한번 돌리시고 커밋 생성 부탁드릴게요.
수정 후, 커밋은 하나로 합쳐주시길 부탁드립니다.
| - Show/hide additional controls or information depending on where in the document the user is. | ||
| - Load more data when the user scrolls down till the end of the page. | ||
| 예시: | ||
| - 문서의 위치에 따라 추가 컨트롤 또는 정보를 표시하거나 숨깁니다. |
Member
There was a problem hiding this comment.
Suggested change
| - 문서의 위치에 따라 추가 컨트롤 또는 정보를 표시하거나 숨깁니다. | |
| - 사용사의 문서 내 위치에 따라 특정 코드를 실행시키거나 정보를 표시 혹은 숨길 수 있습니다. |
| - Load more data when the user scrolls down till the end of the page. | ||
| 예시: | ||
| - 문서의 위치에 따라 추가 컨트롤 또는 정보를 표시하거나 숨깁니다. | ||
| - 사용자가 페이지 끝까지 스크롤 할 때 더 많은 데이터를 로드합니다. |
Member
There was a problem hiding this comment.
Suggested change
| - 사용자가 페이지 끝까지 스크롤 할 때 더 많은 데이터를 로드합니다. | |
| - 사용자가 페이지 맨 아래까지 스크롤을 내릴 경우, 추가 데이터를 로드합니다. |
| - 사용자가 페이지 끝까지 스크롤 할 때 더 많은 데이터를 로드합니다. | ||
|
|
||
| Here's a small function to show the current scroll: | ||
| 다음은 현재 스크롤을 표시하는 작은 함수입니다. |
Member
There was a problem hiding this comment.
Suggested change
| 다음은 현재 스크롤을 표시하는 작은 함수입니다. | |
| 다음 함수는 현재 스크롤 위치를 표시해줍니다. |
|
|
||
| ```online | ||
| In action: | ||
| 동작 중: |
Member
There was a problem hiding this comment.
Suggested change
| 동작 중: | |
| 위 함수가 동작하도록 해 놓았기 때문에 다음과 같이 현재 스크롤 위치가 계속 업데이트되는것을 확인할 수 있습니다. |
| ``` | ||
|
|
||
| The `scroll` event works both on the `window` and on scrollable elements. | ||
| `scroll` 이벤트는 `window` 와 스크롤이 가능한 요소 모두에서 작동합니다. |
Member
There was a problem hiding this comment.
Suggested change
| `scroll` 이벤트는 `window` 와 스크롤이 가능한 요소 모두에서 작동합니다. | |
| `scroll` 이벤트는 `window`와 스크롤이 가능한 요소 모두에서 동작합니다. |
| 어떻게 통제할 수 없는 것을 만들 수 있을까요? | ||
|
|
||
| We can't prevent scrolling by using `event.preventDefault()` in `onscroll` listener, because it triggers *after* the scroll has already happened. | ||
| 스크롤이 이미 실행된 *후*에 트리거 되므로 `onscroll` Listener에서 `event.preventDefault()`를 사용하여 스크롤을 방지할 수 없습니다. |
Member
There was a problem hiding this comment.
Suggested change
| 스크롤이 이미 실행된 *후*에 트리거 되므로 `onscroll` Listener에서 `event.preventDefault()`를 사용하여 스크롤을 방지할 수 없습니다. | |
| `onscroll` 리스너는 스크롤이 움직인 *후*에 트리거 되므로 `event.preventDefault()`를 사용해도 스크롤을 막을 수 없습니다. |
| 스크롤이 이미 실행된 *후*에 트리거 되므로 `onscroll` Listener에서 `event.preventDefault()`를 사용하여 스크롤을 방지할 수 없습니다. | ||
|
|
||
| But we can prevent scrolling by `event.preventDefault()` on an event that causes the scroll, for instance `keydown` event for `key:pageUp` and `key:pageDown`. | ||
| 그러나 스크롤을 유발하는 이벤트(예시: `key:pageUp` 및 `key:pageDown`에 대한 `keydown` 이벤트)에 대해 `event.preventDefault()`로 스크롤 하지 않도록 할 수 있습니다. |
Member
There was a problem hiding this comment.
Suggested change
| 그러나 스크롤을 유발하는 이벤트(예시: `key:pageUp` 및 `key:pageDown`에 대한 `keydown` 이벤트)에 대해 `event.preventDefault()`로 스크롤 하지 않도록 할 수 있습니다. | |
| 그런데 `key:pageUp`나 `key:pageDown`같은 `keydown` 이벤트를 사용해 스크롤을 움직이는건 `event.preventDefault()`로 막을 수 있습니다. |
| 그러나 스크롤을 유발하는 이벤트(예시: `key:pageUp` 및 `key:pageDown`에 대한 `keydown` 이벤트)에 대해 `event.preventDefault()`로 스크롤 하지 않도록 할 수 있습니다. | ||
|
|
||
| If we add an event handler to these events and `event.preventDefault()` in it, then the scroll won't start. | ||
| 이벤트 핸들러를 이러한 이벤트와 이벤트 핸들러의 `event.preventDefault()`에 추가하면 스크롤이 시작되지 않습니다. |
Member
There was a problem hiding this comment.
Suggested change
| 이벤트 핸들러를 이러한 이벤트와 이벤트 핸들러의 `event.preventDefault()`에 추가하면 스크롤이 시작되지 않습니다. | |
| 이벤트 핸들러를 이러한 이벤트와 이벤트 핸들러의 `event.preventDefault()`에 추가하면 스크롤이 시작되지 않습니다. |
Suggested change
| 이벤트 핸들러를 이러한 이벤트와 이벤트 핸들러의 `event.preventDefault()`에 추가하면 스크롤이 시작되지 않습니다. | |
| `keydown` 이벤트에 핸들러 있고, 이 핸들러에 `event.preventDefault()`를 추가하면 스크롤을 움직이지 못하게 할 수 있습니다. |
| 이벤트 핸들러를 이러한 이벤트와 이벤트 핸들러의 `event.preventDefault()`에 추가하면 스크롤이 시작되지 않습니다. | ||
|
|
||
| There are many ways to initiate a scroll, so it's more reliable to use CSS, `overflow` property. | ||
| 스크롤을 시작하는 방법은 여러 가지가 있으므로 CSS, `overflow` 프로퍼티를 사용하는 것이 더 안정적입니다. |
Member
There was a problem hiding this comment.
Suggested change
| 스크롤을 시작하는 방법은 여러 가지가 있으므로 CSS, `overflow` 프로퍼티를 사용하는 것이 더 안정적입니다. | |
| 스크롤을 움직이게 하는 방법은 여러 가지가 있으므로 스크롤을 막으려면 CSS의 `overflow` 프로퍼티를 사용하는 걸 추천합니다. |
| 스크롤을 시작하는 방법은 여러 가지가 있으므로 CSS, `overflow` 프로퍼티를 사용하는 것이 더 안정적입니다. | ||
|
|
||
| Here are few tasks that you can solve or look through to see applications of `onscroll`. | ||
| 다음은 `onscroll`의 애플리케이션을 보기 위해 해결하거나 살펴볼 수 있는 몇 가지 과제입니다. |
Member
There was a problem hiding this comment.
Suggested change
| 다음은 `onscroll`의 애플리케이션을 보기 위해 해결하거나 살펴볼 수 있는 몇 가지 과제입니다. | |
| `scroll`과 `onscroll` 이벤트가 실무에서 어떻게 사용되는지는 다음 과제를 통해 학습해보세요. |
|
Please make the requested changes. After it, add a comment "/done". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
연관 이슈
Scrolling 번역#1552
Pull Request 체크리스트
TODO