I have a mouse listener event attached to a sprite. When I click, the onMouseUp event triggers twice. This is the only EventListenerMouse and I have no touch events. Is this a bug?
auto mouseListener = EventListenerMouse::create();
mouseListener->onMouseUp = [&](Event *event) {
auto mouse = dynamic_cast<EventMouse*>(event);
log("%d", mouse->getMouseButton()); //logs twice
};
_eventDispatcher->addEventListenerWithSceneGraphPriority(mouseListener, this); //"this" is a custom sprite object