protected isHit(
context: IInputModeContext,
location: Point,
node: INode
): boolean {
if (
!node.layout.toRect().containsWithEps(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
}