Skip to content

Commit

Permalink
Fix references to Idle
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Jul 24, 2023
1 parent 4781193 commit d01fa8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/screenorientation/change_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.ScreenOrientation.change_event
---

{{securecontext_header}}{{APIRef("Idle Detection API")}}{{SeeCompatTable}}
{{securecontext_header}}{{APIRef("Screen Orientation API")}}{{SeeCompatTable}}

The **`change`** event of the {{domxref("ScreenOrientation")}} fires when the orientation of the screen has changed, for example when a user rotates his mobile phone.

Expand All @@ -26,7 +26,7 @@ A generic {{domxref("Event")}}.

## Example

In the following example, the `change` callback prints the status of `userState` and `screenState` to the console.
In the following example, the `change` callback prints the new {{DOMxRef("ScreenOrientation.type", "screen orientation type")}} and {{DOMxRef("ScreenOrientation.angle")}}

```js
screen.orientation.addEventListener("change", (event) => {
Expand Down

0 comments on commit d01fa8f

Please sign in to comment.