issues
search
macabeus
/
react-gbajs
🕹 GBA emulator on your React project - easy and powerful to use!
https://www.npmjs.com/package/react-gbajs
BSD 2-Clause "Simplified" License
71
stars
14
forks
source link
Improve canvas: scale and ref
#5
Closed
macabeus
closed
3 years ago
macabeus
commented
3 years ago
Two improvements on the canvas:
use css transform to change its scale, which is faster (suggested here
https://github.com/city41/smaghetti/discussions/29#discussioncomment-776751
)
use ref instead of
id
to find the element, to avoid name conflict
Two improvements on the canvas:
id
to find the element, to avoid name conflict