diff --git a/cocos/editor-support/fairygui/event/InputProcessor.cpp b/cocos/editor-support/fairygui/event/InputProcessor.cpp index 8531ae6..c349d89 100644 --- a/cocos/editor-support/fairygui/event/InputProcessor.cpp +++ b/cocos/editor-support/fairygui/event/InputProcessor.cpp @@ -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;