"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../events/event-info.mjs.js"),t=require("../../../../motion-dom/dist/es/render/Feature.mjs.js"),o=require("../../../../motion-dom/dist/es/gestures/hover.mjs.js"),r=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function s(t,o,s){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===s);const i=n["onHover"+s];i&&r.frame.postRender((()=>i(o,e.extractEventInfo(o))))}class n extends t.Feature{mount(){const{current:e}=this.node;e&&(this.unmount=o.hover(e,((e,t)=>(s(this.node,t,"Start"),e=>s(this.node,e,"End")))))}unmount(){}}exports.HoverGesture=n;
//# sourceMappingURL=hover.mjs.js.map
