Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Suggestions About Events: DragStart!!! #189

Open
ningshi01 opened this issue Jul 16, 2024 · 0 comments
Open

Some Suggestions About Events: DragStart!!! #189

ningshi01 opened this issue Jul 16, 2024 · 0 comments

Comments

@ningshi01
Copy link

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)"
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant