diff --git a/source/application.cpp b/source/application.cpp index 467d200..1b34d1d 100644 --- a/source/application.cpp +++ b/source/application.cpp @@ -1485,12 +1485,13 @@ namespace gmtk if (!view_transition_) { - map_.world.apply([&](ecs::handle entity, item const & i) - { - auto box = geom::expand(geom::box::singleton(position(map_.world, i)), scale(map_.world, i) / 9.f); - if (geom::contains(box, mouse_world_)) - selected_item_ = entity; - }); + if (geom::contains(geom::shrink(view_box_[0], (view_box_[0].length() - view_box_[1].length()) / 2.f), mouse_world_[0])) + map_.world.apply([&](ecs::handle entity, item const & i) + { + auto box = geom::expand(geom::box::singleton(position(map_.world, i)), scale(map_.world, i) / 9.f); + if (geom::contains(box, mouse_world_)) + selected_item_ = entity; + }); if (selected_item_ && item_killing_spree_) {