Skip to content

Commit

Permalink
whoops, opposite that.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jun 9, 2024
1 parent c8ed0b8 commit 973f4b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export function useRerasterize(
requestAnimationFrame(() => {
if (!ref.current) return;
const el = ref.current;
el.style.willChange = defaultToOwnLayer ? 'transform' : 'initial';
el.style.willChange = defaultToOwnLayer ? 'initial' : 'transform';
requestAnimationFrame(() => {
el.style.willChange = defaultToOwnLayer ? 'initial' : 'transform';
el.style.willChange = defaultToOwnLayer ? 'transform' : 'initial';
});
});
}
Expand Down

0 comments on commit 973f4b9

Please sign in to comment.