Skip to content

Commit 01d7e06

Browse files
Better doc comment for History.scrollRestoration
Co-authored-by: Arman Bilge <[email protected]>
1 parent a64b7c2 commit 01d7e06

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dom/src/main/scala/org/scalajs/dom/History.scala

+1-7
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,8 @@ class History extends js.Object {
7272
*/
7373
def pushState(statedata: js.Any, title: String): Unit = js.native
7474

75-
/** The scrollRestoration property of History interface allows web applications to explicitly set default scroll
75+
/** The `scrollRestoration` property of [[History]] interface allows web applications to explicitly set default scroll
7676
* restoration behavior on history navigation.
77-
*
78-
* Can have onne of the followings values:
79-
*
80-
* auto: The location on the page to which the user has scrolled will be restored.
81-
*
82-
* manual: The location on the page is not restored. The user will have to scroll to the location manually.
8377
*/
8478
var scrollRestoration: ScrollRestoration = js.native
8579
}

0 commit comments

Comments
 (0)