function patchMouseEvent (e) {
  return {
    deltaX: e.dx || 0,
    deltaY: e.dy || 0,
    deltaZ: 0,
    deltaMode: 0,
    button: e.buttonNumber || 0,
    buttons: e.buttonNumber || 0,
    x: e.x,
    y: e.y,
    offsetX: e.x,
    offsetY: e.y,
    altKey: e.option,
    shiftKey: e.shift,
    ctrlKey: e.ctrl,
    metaKey: e.cmd
  }
}

module.exports = patchMouseEvent

@@ -325,16 +325,270 @@
 y: e.cmd
+,%0A    defaultPrevented: false,%0A    preventDefault: function () %7B%0A      this.defaultPrevented = true%0A    %7D,%0A    stopPropagation: function () %7B%0A      // no effect in plask%0A    %7D,%0A    stopImmediatePropagation: function () %7B%0A      // no effect in plask%0A    %7D
 %0A  %7D%0A%7D%0A%0A

Add missing MouseEvent methods