MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / pointerenter

Function pointerenter

src/dd-touch.ts:142–151  ·  view source on GitHub ↗
(e: PointerEvent)

Source from the content-addressed store, hash-verified

140}
141
142export function pointerenter(e: PointerEvent): void {
143 // ignore the initial one we get on pointerdown on ourself
144 if (!DDManager.dragElement) {
145 // console.log('pointerenter ignored');
146 return;
147 }
148 // console.log('pointerenter');
149 if (e.pointerType === 'mouse') return;
150 simulatePointerMouseEvent(e, 'mouseenter');
151}
152
153export function pointerleave(e: PointerEvent): void {
154 // ignore the leave on ourself we get before releasing the mouse over ourself

Callers 1

dd-touch-spec.tsFile · 0.90

Calls 1

Tested by

no test coverage detected