From a535e7c9362714c101c315fc400a53258d210ffc Mon Sep 17 00:00:00 2001 From: u0u0 Date: Tue, 6 Jul 2021 14:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E6=B4=BE=E5=8F=91move?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cocos/editor-support/fairygui/event/InputProcessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;