Sha256: 0a83599fc24e0d891c32090d5a1355e0bcd723e6307efb0a9241d98de5bf4a92

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

"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
};

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
lanes-0.8.0 node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
select_all-rails-0.3.1 node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js