17 lines
428 B
JavaScript
17 lines
428 B
JavaScript
|
|
import '../utils/dataTransfer/Clipboard.js';
|
||
|
|
import { assertPointerEvents } from '../utils/pointer/cssPointerEvents.js';
|
||
|
|
|
||
|
|
async function hover(element) {
|
||
|
|
return this.pointer({
|
||
|
|
target: element
|
||
|
|
});
|
||
|
|
}
|
||
|
|
async function unhover(element) {
|
||
|
|
assertPointerEvents(this, this.system.pointer.getMouseTarget(this));
|
||
|
|
return this.pointer({
|
||
|
|
target: element.ownerDocument.body
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export { hover, unhover };
|