mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-07-01 03:04:42 +08:00
正确派发move事件
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user