Poor performance of html5 canvas under firefox

前端 未结 1 679
有刺的猬
有刺的猬 2021-01-21 04:33

I have the following html5 code:



followed by some javascript:



        
相关标签:
1条回答
  • 2021-01-21 05:28

    Firefox's drawImage function has poor performance

    You might want to consider adding a setTimeout function in the onresize to prevent it from trying to redraw while the user is dragging the window to improve performance.

    0 讨论(0)
提交回复
热议问题