handlerPointerDown method
Implementation
@override
bool handlerPointerDown(PointerDownEvent event) {
final tapEvent = GestureEvent.fromPointerEvent(
event,
screenToWorld: gameRef.screenToWorld,
globalToViewportPosition: gameRef.globalToViewportPosition,
);
bool handler = false;
if (enableTab && hasGameRef) {
onTapDownScreen(tapEvent);
if (isHud) {
if (containsPoint(tapEvent.screenPosition)) {
_pointer = tapEvent.pointer;
handler = onTapDown(tapEvent);
}
} else {
if (containsPoint(tapEvent.worldPosition)) {
_pointer = tapEvent.pointer;
handler = onTapDown(tapEvent);
}
}
}
return handler ? handler : super.handlerPointerDown(event);
}