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>
This commit is contained in:
Mike Reed 2020-01-18 12:16:52 -05:00 committed by Skia Commit-Bot
parent ee3216d8f8
commit 5344cc31ff

View File

@ -65,9 +65,6 @@ bool Sample::mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey
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;