forked from organicmaps/organicmaps
taking visualScale into account when hitTest'ing the CompassArrow.
This commit is contained in:
parent
4f93b029f9
commit
25698b84a2
1 changed files with 2 additions and 1 deletions
|
@ -170,5 +170,6 @@ bool CompassArrow::onTapEnded(m2::PointD const & pt)
|
|||
|
||||
bool CompassArrow::hitTest(m2::PointD const & pt) const
|
||||
{
|
||||
return pt.Length(pivot() * visualScale()) < max(m_arrowWidth / 2, m_arrowHeight / 2);
|
||||
double rad = max(m_arrowWidth / 2, m_arrowHeight / 2);
|
||||
return pt.Length(pivot() * visualScale()) < rad * visualScale();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue