Sha256: 03e8fd08d804787a86a048f0ae018be2f1d14c66e925c1744d1b1d91c94c0e51
Contents?: true
Size: 1.1 KB
Versions: 20
Compression:
Stored size: 1.1 KB
Contents
"use strict"; const { mixin } = require("../../utils"); const EventModifierMixinImpl = require("./EventModifierMixin-impl").implementation; const UIEventImpl = require("./UIEvent-impl").implementation; const MouseEventInit = require("../generated/MouseEventInit"); 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; } } mixin(MouseEventImpl.prototype, EventModifierMixinImpl.prototype); MouseEventImpl.defaultInit = MouseEventInit.convert(undefined); module.exports = { implementation: MouseEventImpl };
Version data entries
20 entries across 20 versions & 1 rubygems