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

Initial Position

Open christiangelone opened this issue 6 years ago • 3 comments

Is there any way to set the initial position of the draggable element?

christiangelone avatar Mar 08 '18 15:03 christiangelone

Please update to v1.3.0. We can use [position] to set the initial offset.

xieziyu avatar Mar 09 '18 05:03 xieziyu

Which doesn't work at all. Setting position let's the coordinates explode on drag. Moving the mouse 1mm and whoops, x coord sitting at 8000+.

And found out why: sometimes the plugin doesn't interpret the values correctly. The plugin should parse the values so they won't be accidentally used as a string. It's pretty inconsistent right now.

ventr1x avatar Apr 01 '18 07:04 ventr1x

@ventr1x the position input has an exported type definition: IPosition. Use it wisely and this inconsistent issue can be complained by the compiler.

xieziyu avatar Apr 01 '18 08:04 xieziyu