hoverShow

Commons
stable

Event handler that activates the hover visual effect on the current target element. Guards against duplicate touch/mouse events on Android/iOS. Uses the ORIGAM_HOVER_STOP_KEY sentinel to prevent bubble propagation to parent hover elements.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

e
required
THoverEvent
A mouseenter or touchstart event. e.currentTarget must be an IHoverHtmlElement with a _hover descriptor.

API

Return value

The value returned by this util.

Nothing. Displays the hover overlay and fires the optional mouseenter callback.

Usage

Examples

Ready-to-paste usage snippets.

Manually bind hover effect

typescript