Skip to content

Commit

Permalink
Merge pull request #10 from silviucm/master
Browse files Browse the repository at this point in the history
Update link for RequestAnimationFrame
  • Loading branch information
orsinium authored Feb 28, 2024
2 parents ed1235f + c826098 commit 43903b4
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 43903b4

Please sign in to comment.