diff options
author | MDN <actions@users.noreply.github.com> | 2021-12-14 00:54:59 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-12-14 00:54:59 +0000 |
commit | b70e1c5047a716aa587abd786a6aa1d197140f5d (patch) | |
tree | 5c7a4c345b594b5d39ea51456714ef33d125faf9 /files/zh-cn/web/api/visualviewport/scroll_event | |
parent | 70879fc7f55b999a7f5591415c356ca9f0c2cca6 (diff) | |
download | translated-content-b70e1c5047a716aa587abd786a6aa1d197140f5d.tar.gz translated-content-b70e1c5047a716aa587abd786a6aa1d197140f5d.tar.bz2 translated-content-b70e1c5047a716aa587abd786a6aa1d197140f5d.zip |
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/visualviewport/scroll_event')
-rw-r--r-- | files/zh-cn/web/api/visualviewport/scroll_event/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/visualviewport/scroll_event/index.html b/files/zh-cn/web/api/visualviewport/scroll_event/index.html new file mode 100644 index 0000000000..914003b516 --- /dev/null +++ b/files/zh-cn/web/api/visualviewport/scroll_event/index.html @@ -0,0 +1,42 @@ +--- +title: VisualViewport.onscroll +slug: Web/API/VisualViewport/scroll_event +translation_of: Web/API/VisualViewport/onscroll +original_slug: Web/API/VisualViewport/onscroll +--- +<p>{{APIRef("Visual Viewport")}}{{ SeeCompatTable() }}</p> + +<p>The <strong><code>onscroll</code></strong> event handler of the {{domxref("VisualViewport")}} interface is called when a viewport is scrolled, i.e. when the <code><a href="/en-US/docs/Web/API/VisualViewport/scroll_event">scroll</a></code> event is fired.</p> + +<h2 id="Syntax">Syntax</h2> + +<pre class="syntaxbox notranslate">VisualViewport.onscroll = function(e) { ... }</pre> + +<h2 id="Examples">Examples</h2> + +<pre class="notranslate">VisualViewport.onscroll = function(e) { + ... +}</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Visual Viewport','#dom-visualviewport-onscroll','onscroll')}}</td> + <td>{{Spec2('Visual Viewport')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + + + +<p>{{Compat("api.VisualViewport.onscroll")}}</p> |