Skip to content

Commit

Permalink
Update link for RequestAnimationFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
silviucm authored Feb 28, 2024
1 parent ed1235f commit c826098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (window Window) SetScrollY(pixels int) {

// METHODS

// https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY
// https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
func (window Window) RequestAnimationFrame(handler func(), recursive bool) {
wrapped := func(this js.Value, args []js.Value) any {
handler()
Expand Down

0 comments on commit c826098

Please sign in to comment.