You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current scroll = <b id="showScroll">scroll the window</b>
20
+
Mevcut kaydırma = <b id="showScroll">scroll the window</b>
21
21
```
22
22
23
-
The `scroll`event works both on the `window`and on scrollable elements.
23
+
`scroll`elementi hem `window`ta hem de kaydırılabilir elementlerde çalışır.
24
24
25
-
## Prevent scrolling
25
+
## Kaydırmayı Önlemek
26
26
27
-
How do we make something unscrollable? We can't prevent scrolling by using `event.preventDefault()`in `onscroll` listener, because it triggers *after* the scroll has already happened.
27
+
Bir şeyi nasıl kaydırılamaz hale getiririz? `onscroll` dinleyicisinde `event.preventDefault()`kullanarak kaydırmayı engelleyemiyoruz çünkü kaydırma zaten gerçekleştikten sonra tetiklenir.
28
28
29
-
But we can prevent scrolling by `event.preventDefault()`on an event that causes the scroll.
29
+
Ancak `event.preventDefault()`ile , kaydırmaya neden olan bir olayda kaydırmayı engelleyebiliriz .
30
30
31
-
For instance:
32
-
-`wheel`event -- a mouse wheel roll (a "scrolling" touchpad action generates it too).
33
-
-`keydown`event for`key:pageUp`and`key:pageDown`.
31
+
Örneğin:
32
+
-`wheel`olayı -- farenin tekerliği ile veya "kayan bir dokunmatik alan" yani touchpad de aynı görevi üstlenir).
33
+
-`keydown`olayı için`key:pageUp`ve`key:pageDown`.
34
34
35
-
If we add an event handler to these events and `event.preventDefault()`in it, then the scroll won't start.
35
+
Bu olaylara bir olay işleyicisi (event handler) ve bunun içine `event.preventDefault()` eklersek, kaydırma başlamaz.
36
36
37
-
Sometimes that may help, but it's more reliable to use CSS to make something unscrollable, such as the `overflow`property.
37
+
Bazen bu size yardımcı olabilir ancak bir şeyi kaydırılamaz hale getirmek için CSS kullanmak daha güvenilirdir mesela `overflow`özelliği gibi.
38
38
39
-
Here are few tasks that you can solve or look through to see the applications on `onscroll`.
39
+
İşte `onscroll` ile çözebileceğiniz veya uygulamaları görmek için inceleyebileceğiniz birkaç görev.
0 commit comments