正确派发move事件

This commit is contained in:
u0u0
2021-07-06 14:43:30 +08:00
parent 2b7daf87d2
commit a535e7c936

View File

@@ -413,7 +413,7 @@ void InputProcessor::onTouchMoved(Touch *touch, Event* /*unusedEvent*/)
}
}
if (!done)
_owner->dispatchEvent(UIEventType::TouchMove);
target->dispatchEvent(UIEventType::TouchMove);
}
_activeProcessor = nullptr;
@@ -668,7 +668,7 @@ void InputProcessor::onMouseMove(cocos2d::EventMouse * event)
}
}
if (!done)
_owner->dispatchEvent(UIEventType::TouchMove);
target->dispatchEvent(UIEventType::TouchMove);
}
_activeProcessor = nullptr;