wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

fix: 5890 set upper bound for vertical jump

Open dv29 opened this issue 7 months ago • 2 comments

Connections #5890

Description Its adding bounds to the vertical jump on bunnymark example. It will also update size of the surface on resize.

Testing

  1. cargo xtask run-wasm
  2. go to http://localhost:8000/?backend=webgpu&example=bunnymark
  3. The bunnies should not jump out of the vertical bounds and should resize when the screen size changes.

Checklist

  • [x] Run cargo fmt.
  • [x] Run cargo clippy. If applicable, add:
    • [x] --target wasm32-unknown-unknown
    • [x] --target wasm32-unknown-emscripten
  • [x] Run cargo xtask test to run tests.
  • [ ] Add change to CHANGELOG.md. See simple instructions inside file.

dv29 avatar Jul 24 '24 13:07 dv29