vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

update event buffer's statically allocated memory #190

Closed mertnacakgedigi closed 3 years ago

mertnacakgedigi commented 3 years ago

This PR changes the event buffer's statically allocated size to accommodate larger sizes and solves the related issue

bradleypeabody commented 3 years ago

Thanks very much for this PR! As discussed separately, please leave the JS buffer allocation in JS and just have the Go buffer reallocate as needed inside JSRenderer.eventHandlerFunc (obviating the need for allocateEventBuffer). And add one or more tests cases to the suite.

bradleypeabody commented 3 years ago

Great!

Merging this into another branch to verify the tests in travis and if all good will merge into master