Setting stroke and shadowColor attributes at the same time causes node lag
ysl-ccc opened this issue · 2 comments
ysl-ccc commented
https://codesandbox.io/p/sandbox/konva-stroke-shadow-4qpq6r
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.
lavrton commented
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
ysl-ccc commented
Ok