Deleted unecessary casting operation as part of PR review

This commit is contained in:
GPayne
2018-07-05 14:34:35 -06:00
parent d86b78f2f5
commit f84f5f5cc5

View File

@@ -369,8 +369,8 @@ void TouchInteraction::updateStateFromInput(const std::vector<TuioCursor>& list,
list.at(0).getScreenY(res.y)
);
const float bottomCornerSizeForZoomTap_fraction = 0.08f;
int zoomTapThresholdX = (float)res.x * (1.0f - bottomCornerSizeForZoomTap_fraction);
int zoomTapThresholdY = (float)res.y * (1.0f - bottomCornerSizeForZoomTap_fraction);
int zoomTapThresholdX = res.x * (1.0f - bottomCornerSizeForZoomTap_fraction);
int zoomTapThresholdY = res.y * (1.0f - bottomCornerSizeForZoomTap_fraction);
bool isTapInLowerCorner = std::abs(pos.x) > zoomTapThresholdX &&
std::abs(pos.y) > zoomTapThresholdY;