clean up: remove artificial mouse loc rejects
Now that "point" is local (viewer may have modified it for zooming or panning),
it no longer makes sense to check for out-of-bounds.
Change-Id: I8881f8b27be96973cb7687b25d93a0de5a22f5db
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/265218
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/samplecode/Sample.cpp b/samplecode/Sample.cpp
index 3f92d82..887069a 100644
--- a/samplecode/Sample.cpp
+++ b/samplecode/Sample.cpp
@@ -65,9 +65,6 @@
switch (clickState) {
case skui::InputState::kDown:
fClick = nullptr;
- if (point.x() < 0 || point.y() < 0 || point.x() >= fWidth || point.y() >= fHeight) {
- // return false;
- }
fClick.reset(this->onFindClickHandler(point.x(), point.y(), modifierKeys));
if (!fClick) {
return false;