Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Hits Mouse Event

sprotty / hitsMouseEvent

Function: hitsMouseEvent()

hitsMouseEvent(child, event): boolean

Defined in: packages/sprotty/src/utils/browser.ts:62

Checks whether the given mouse event hits the given DOM element.

Parameters

child

Element

event

MouseEvent

Returns

boolean