Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,13 @@ public boolean onTouchEvent(MotionEvent ev) {
}

@Override
public boolean dispatchGenericPointerEvent(MotionEvent ev) {
// We do not dispatch the pointer event if its children are not supposed to receive it
public boolean dispatchGenericMotionEvent(MotionEvent ev) {
// We do not dispatch the motion event if its children are not supposed to receive it
if (!PointerEvents.canChildrenBeTouchTarget(mPointerEvents)) {
return false;
}

return super.dispatchGenericPointerEvent(ev);
return super.dispatchGenericMotionEvent(ev);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,13 @@ public boolean onTouchEvent(MotionEvent ev) {
}

@Override
public boolean dispatchGenericPointerEvent(MotionEvent ev) {
// We do not dispatch the pointer event if its children are not supposed to receive it
public boolean dispatchGenericMotionEvent(MotionEvent ev) {
// We do not dispatch the motion event if its children are not supposed to receive it
if (!PointerEvents.canChildrenBeTouchTarget(mPointerEvents)) {
return false;
}

return super.dispatchGenericPointerEvent(ev);
return super.dispatchGenericMotionEvent(ev);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ public boolean onTouchEvent(MotionEvent ev) {
}

@Override
public boolean dispatchGenericPointerEvent(MotionEvent ev) {
// We do not dispatch the pointer event if its children are not supposed to receive it
public boolean dispatchGenericMotionEvent(MotionEvent ev) {
// We do not dispatch the motion event if its children are not supposed to receive it
if (!PointerEvents.canChildrenBeTouchTarget(mPointerEvents)) {
return false;
}

return super.dispatchGenericPointerEvent(ev);
return super.dispatchGenericMotionEvent(ev);
}

/**
Expand Down