protected isHit(
context: IInputModeContext,
location: Point,
node: INode
): boolean {
if (!node.layout.toRect().contains(location, context.hitTestRadius)) {
return false
}
const { x, y } = location
const { x: layoutX, y: layoutY } = node.layout
if (
x > layoutX + tabWidth + context.hitTestRadius &&
y < layoutY + tabHeight - context.hitTestRadius
) {
return false
}
return true
}