Skip to content

Commit a64b7c2

Browse files
Better doc comments for Scroll Restoration
Co-authored-by: Arman Bilge <[email protected]>
1 parent 567c1e3 commit a64b7c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ opaque type ScrollRestoration <: String = String
99
* which contains the spec for ScrollRestoration
1010
*/
1111
object ScrollRestoration {
12+
/** The location on the page to which the user has scrolled will be restored. */
1213
val auto: ScrollRestoration = "auto"
14+
/** The location on the page is not restored. The user will have to scroll to the location manually. */
1315
val manual: ScrollRestoration = "manual"
1416
}

0 commit comments

Comments
 (0)