AnimatedEnvironmentLayer icon indicating copy to clipboard operation
AnimatedEnvironmentLayer copied to clipboard

I found the reason why the artboard is not full screen but there is a new bug

Open wy201707 opened this issue 1 year ago • 2 comments

Hello author, I'm sorry to bother you, I also found the problem of "the drawing area is smaller than the screen" mentioned before, I found part of the reason but encountered a new bug. Find that the size of the drawing board is related to window.devicePixelRatio, so adjust the drawing board passed into layerview (this.context.canvas.width = cwidth*window.devicePixelRatio when resizing) But the strange thing is that when window.devicePixelRatio is not an integer, the particle animation is directly messed up. chatGPT prompts: it may be that infinity values appear when some places are multiplied by decimals and then passed through values or rounded off. But I can't really find where is the error

wy201707 avatar Mar 27 '23 15:03 wy201707