Skip to content

Some Suggestions About Events: DragStart!!! #189

@ningshi01

Description

@ningshi01

I think we need a event for "DragStart" as the event of starting drag the compoent, So I can get the position when drag-start, but now I just can add a flag to get it!

this is my code to get the start POS(position)

JavaScript:
forDragging(pos){
      if(this.flagDragging===false){
        this.flagDragging = true
        this.startPosition = pos.left
      }
}
Html:
<VueDragResize :isActive="true"  :isResizable="false"
                             @dragging="(pos) => forDragging(pos)"
                             @dragstop="(pos) => forStopDrag(pos)"
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions