From b70e1c5047a716aa587abd786a6aa1d197140f5d Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 14 Dec 2021 00:54:59 +0000 Subject: [CRON] sync translated content --- files/zh-cn/_redirects.txt | 1 + files/zh-cn/_wikihistory.json | 2 +- .../web/api/visualviewport/onscroll/index.html | 41 --------------------- .../web/api/visualviewport/scroll_event/index.html | 42 ++++++++++++++++++++++ 4 files changed, 44 insertions(+), 42 deletions(-) delete mode 100644 files/zh-cn/web/api/visualviewport/onscroll/index.html create mode 100644 files/zh-cn/web/api/visualviewport/scroll_event/index.html (limited to 'files/zh-cn') diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 8c20e77a7b..1d1fb901fc 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1512,6 +1512,7 @@ /zh-CN/docs/Web/API/URLUtils/search /zh-CN/docs/Web/API/HTMLAnchorElement/search /zh-CN/docs/Web/API/URLUtils/toString /zh-CN/docs/Web/API/HTMLAnchorElement/toString /zh-CN/docs/Web/API/URLUtils/username /zh-CN/docs/Web/API/HTMLAnchorElement/username +/zh-CN/docs/Web/API/VisualViewport/onscroll /zh-CN/docs/Web/API/VisualViewport/scroll_event /zh-CN/docs/Web/API/WebGLRenderingContext/多边形偏移(polygonOffset) /zh-CN/docs/Web/API/WebGLRenderingContext/polygonOffset /zh-CN/docs/Web/API/WebGL_API/Adding_2D_content_to_a_WebGL_context /zh-CN/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context /zh-CN/docs/Web/API/WebGL_API/Getting_started_with_WebGL /zh-CN/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index d92c883026..48f41f997c 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -21062,7 +21062,7 @@ "aimaoll" ] }, - "Web/API/VisualViewport/onscroll": { + "Web/API/VisualViewport/scroll_event": { "modified": "2020-10-15T22:34:23.403Z", "contributors": [ "penneix" diff --git a/files/zh-cn/web/api/visualviewport/onscroll/index.html b/files/zh-cn/web/api/visualviewport/onscroll/index.html deleted file mode 100644 index e4666d8669..0000000000 --- a/files/zh-cn/web/api/visualviewport/onscroll/index.html +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: VisualViewport.onscroll -slug: Web/API/VisualViewport/onscroll -translation_of: Web/API/VisualViewport/onscroll ---- -

{{APIRef("Visual Viewport")}}{{ SeeCompatTable() }}

- -

The onscroll event handler of the {{domxref("VisualViewport")}} interface is called when a viewport is scrolled, i.e. when the scroll event is fired.

- -

Syntax

- -
VisualViewport.onscroll = function(e) { ... }
- -

Examples

- -
VisualViewport.onscroll = function(e) {
-  ...
-}
- -

Specifications

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Visual Viewport','#dom-visualviewport-onscroll','onscroll')}}{{Spec2('Visual Viewport')}}Initial definition.
- -

Browser compatibility

- - - -

{{Compat("api.VisualViewport.onscroll")}}

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 +--- +

{{APIRef("Visual Viewport")}}{{ SeeCompatTable() }}

+ +

The onscroll event handler of the {{domxref("VisualViewport")}} interface is called when a viewport is scrolled, i.e. when the scroll event is fired.

+ +

Syntax

+ +
VisualViewport.onscroll = function(e) { ... }
+ +

Examples

+ +
VisualViewport.onscroll = function(e) {
+  ...
+}
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Visual Viewport','#dom-visualviewport-onscroll','onscroll')}}{{Spec2('Visual Viewport')}}Initial definition.
+ +

Browser compatibility

+ + + +

{{Compat("api.VisualViewport.onscroll")}}

-- cgit v1.2.3-54-g00ecf