ember-drag-drop
ember-drag-drop copied to clipboard
Latency grows over many "drags" with many sortableObjects
(note: I still need to reproduce this in a controlled (and 100% updated) environment, so I will return with that soon if I can)
my problem
When dragging around objects in my grid of items, after a while, more on large collections, I notice a latency in the "drop" action in the grid. It goes away with refreshing the page, and doesn't happen when I manually shift the objects' order in the main array. It is enough to grind the page to halt over a long period of time though.
my usage
{{#sortable-objects sortableObjectList=model.joinItems sortEndAction='sortEndAction' useSwap=useSwap}}
{{#each model.joinItems as |item|}}
{{#draggable-object content=item isSortable=true}}
...
{{/draggable-object}}
{{/each}}
{{/sortable-objects}}
(I've been able to reproduce the issue whether or not sortEndAction
exists/is empty)
Or I'm just using it wrong--which is likely, because I have a pretty thin knowledge of this addon so far.
ember v
ember-cli: 2.7.0
node: 6.3.1
os: darwin x64
Thanks! Max