Skip to content

Commit

Permalink
recover partial code
Browse files Browse the repository at this point in the history
  • Loading branch information
arsen2010 committed Sep 22, 2023
1 parent 19e70e4 commit 20cfd19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/inspector/assets/texture-cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ const Elements = {
}

function observer() {
window.requestAnimationFrame(() => {
cancelAnimationFrame(panel.animationFrameId);
panel.animationFrameId = window.requestAnimationFrame(() => {
const { clientWidth } = panel.$.container;
const size = Math.round((clientWidth - 40) / 4);
// 16 is fault tolerance to avoid page scrollbar flickering
Expand Down

0 comments on commit 20cfd19

Please sign in to comment.