react-particles-webgl icon indicating copy to clipboard operation
react-particles-webgl copied to clipboard

reset

Open liuxuerong opened this issue 6 years ago • 1 comments
trafficstars

it will be reset when form inputed , used antd form

liuxuerong avatar Aug 29 '19 05:08 liuxuerong

There are two scenarios where the canvas will appear to "reset"

  1. You have { cameraControls: { resetCameraFlag: true } } which is the intended behavior
  2. You've changed some setting that involves regenerating the particles/lines from scratch, in which they'd receive new initial [x, y, z] positions and velocities, such as enabling or disabling particles

Another possibility with your specific implementation is your form changes are causing a full rerender of the particle canvas

tim-soft avatar Sep 19 '19 18:09 tim-soft