konvajs/konva

Setting stroke and shadowColor attributes at the same time causes node lag

ysl-ccc opened this issue · 2 comments

https://codesandbox.io/p/sandbox/konva-stroke-shadow-4qpq6r

image

Comment out the shaowColor in the red box, and you will no longer be stuck when dragging the rectangle. If you add shaowColor, it will be very stuck.

That is the effect of a special mode to fix rendering inconsistencies. You can disable it perfectDrawEnabled: false,.

For more info: https://konvajs.org/docs/performance/Disable_Perfect_Draw.html

Ok