Skip to content
Advertisement

Tag: react-konva

React-konva slow drag performance with large number of lines rendered

I have problem with dragging functionality while having large number of rendered lines in React-konva. Currently I am mapping over Array.apply(null, Array(10000)) to render lines horizontally. However, it is very laggy comparing to dragging over an array of only 500 lines for example. I have prepared codesandbox to illustrate this issue: https://codesandbox.io/s/dazzling-hooks-0xc4s?file=/src/App.js (Drag mouse horizontally to see the effect) Any

Advertisement