Querying clientHeight forcing synchronous layout (#9760)
Reading clientHeight of canvas during every rAF causes layout thrashing and results in frame drops. Instead re-use the _height local variable available in current scope.
Showing
想要评论请 注册 或 登录