Permalink
Browse files

Improve cursor move performance in large files

  • Loading branch information...
feragon committed Jun 16, 2016
1 parent 97b2c31 commit 3df1e67a380ba0e54e54a686a9fe38e8d5312651
Showing with 2 additions and 2 deletions.
  1. +2 −2 lcviewernoqt/managers/dragmanager.cpp
@@ -16,7 +16,7 @@ std::vector<lc::geo::Coordinate> DragManager::closeEntitiesDragPoints() {
auto entities = _docCanvas->selection();
if(entities.asVector().size() == 0) {
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea);
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingAreaFast(_toleranceArea);
}
entities.each<const lc::Draggable>([&](lc::Draggable_CSPtr entity) {
@@ -107,7 +107,7 @@ void DragManager::onMousePress() {
auto entities = _docCanvas->selection();
if(entities.asVector().size() == 0) {
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea);
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingAreaFast(_toleranceArea);
}
auto entitiesNearCursor = entities.asVector();

0 comments on commit 3df1e67

Please sign in to comment.