Minor UI tweak

This commit is contained in:
Henrik Rydgård
2013-10-31 13:34:34 +01:00
parent bc63867f1d
commit ebfc706e46
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ DragDropButton *TouchControlLayoutScreen::getPickedControl(const int x, const in
for (size_t i = 0; i < controls_.size(); i++) {
DragDropButton *control = controls_[i];
const Bounds &bounds = control->GetBounds();
static const int thresholdFactor = 1.5;
const float thresholdFactor = 1.5f;
Bounds tolerantBounds(bounds.x, bounds.y, bounds.w * thresholdFactor, bounds.h * thresholdFactor);
if (tolerantBounds.Contains(x, y)) {