| 2298 | } |
| 2299 | |
| 2300 | Track::TrackSelectionInfo Framework::FindTrackInTapPosition(place_page::BuildInfo const & buildInfo) const |
| 2301 | { |
| 2302 | auto const & bm = GetBookmarkManager(); |
| 2303 | if (buildInfo.m_trackId != kml::kInvalidTrackId) |
| 2304 | { |
| 2305 | if (bm.GetTrack(buildInfo.m_trackId) == nullptr) |
| 2306 | return {}; |
| 2307 | auto const selection = bm.GetTrackSelectionInfo(buildInfo.m_trackId); |
| 2308 | CHECK_NOT_EQUAL(selection.m_trackId, kml::kInvalidTrackId, ()); |
| 2309 | return selection; |
| 2310 | } |
| 2311 | auto const touchRect = df::TapInfo::GetDefaultTapRect(buildInfo.m_mercator, m_currentModelView).GetGlobalRect(); |
| 2312 | return bm.FindNearestTrack(touchRect); |
| 2313 | } |
| 2314 | |
| 2315 | UserMark const * Framework::FindUserMarkInTapPosition(place_page::BuildInfo const & buildInfo) const |
| 2316 | { |
nothing calls this directly
no test coverage detected