UNPKG

jsdom-se

Version:

jsdom fork for silent errors - A JavaScript implementation of the DOM and HTML standards

29 lines (24 loc) 759 B
"use strict"; const UIEventImpl = require("./UIEvent-impl").implementation; class MouseEventImpl extends UIEventImpl { initMouseEvent(type, bubbles, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) { if (this._dispatchFlag) { return; } this.initUIEvent(type, bubbles, cancelable, view, detail); this.screenX = screenX; this.screenY = screenY; this.clientX = clientX; this.clientY = clientY; this.ctrlKey = ctrlKey; this.altKey = altKey; this.shiftKey = shiftKey; this.metaKey = metaKey; this.button = button; this.relatedTarget = relatedTarget; } } module.exports = { implementation: MouseEventImpl };