Skip to content

Conversation

@dragoncoder047
Copy link
Contributor

Please describe what issue(s) this PR fixes.

closes #844 mostly.

  • Adds onPause, onUnpause, onHide, onUnhide
  • renames conflicting global event hooks (& onResize for good measure too)
  • fixes the sweepandprune to not create and destroy an iterator on every frame (by letting the sweepandprune drive the iteration instead of, y'know, using the iterator to basically have 2 loops controlling the iteration unnecessarily)

Summary

  • Changeloged

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/kaplayjs/kaplay@846

commit: 2514955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: onPause and onUnpause events

1 participant