diff options
Diffstat (limited to 'services/input/InputWindow.cpp')
| -rw-r--r-- | services/input/InputWindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/input/InputWindow.cpp b/services/input/InputWindow.cpp index 9ce45f50513c..b552f6d5b43d 100644 --- a/services/input/InputWindow.cpp +++ b/services/input/InputWindow.cpp @@ -24,9 +24,8 @@ namespace android { // --- InputWindow --- -bool InputWindow::touchableAreaContainsPoint(int32_t x, int32_t y) const { - return x >= touchableAreaLeft && x <= touchableAreaRight - && y >= touchableAreaTop && y <= touchableAreaBottom; +bool InputWindow::touchableRegionContainsPoint(int32_t x, int32_t y) const { + return touchableRegion.contains(x, y); } bool InputWindow::frameContainsPoint(int32_t x, int32_t y) const { |