Wednesday, May 1, 2019

Use the draggable API in an Angular 6 application.

This touches on modern draggability some. I made use of it like so:

<div draggable="true" (dragstart)="startDrag($event)" (dragend)="endDrag($event)">

 
 

The events will have hanging off of them screenX, screenY, clientX, and clientY and properties.

No comments:

Post a Comment