it runs a full reindex in case the item was dragged into another item while it should only add points to pins and outline spatial indices (in itemCreationDraggedToSvgEditor)
indexItemPins -> forEach -> ... ->myMath.worldPointInArea function took 37 ms and it caused GC to spend 33ms. Looks like it generates too many objects
Notes:
itemCreationDraggedToSvgEditor
)indexItemPins
->forEach
-> ... ->myMath.worldPointInArea
function took 37 ms and it caused GC to spend 33ms. Looks like it generates too many objectsscrollToSelection
function took 72 ms