angular2-draggable icon indicating copy to clipboard operation
angular2-draggable copied to clipboard

[Easy] If position values are strings, draggable behavior is erratic

Open mikeqci opened this issue 3 years ago • 0 comments

Values passed as strings will cause extremely erratic dragging on first drag

<div ngDraggable [position]=" {x: '100', y: '100'}" ></div>

Same values passed as int/float will cause normal behavior

<div ngDraggable [position]=" {x: 100, y: 100}" ></div>

This is tricky to debug when using dynamic values (like loading a saved value, for example)

This library is awesome, thanks for all your hard work!

mikeqci avatar Nov 23 '22 16:11 mikeqci