Skip to content

[Bug][Window] @resize, @move event is undefined #815

@ban-am

Description

@ban-am

Describe the bug

The <Window> component emits WindowMoveEvent with event: undefined instead of the original PointerEvent.

dispatchMoveEvent() reads i.event, but i does not contain an event property.

dispatchMoveEvent(t, i, n, h) {
      this.$emit(t, {
        event: i.event,
        drag: n,
        end: h,
        target: this,
        left: this.currentLeft,
        top: this.currentTop,
        width: this.currentWidth,
        height: this.currentHeight
      });
    },

To Reproduce

<Window
  @resize="console.log($event)"  <!-- $event.event is undefined -->
  @move="console.log($event)"    <!-- $event.event is undefined -->
>
</Window>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions