Moveable: How to move Target by user input?

Created on 11 Feb 2020  路  6Comments  路  Source: daybrush/moveable

Environments

  • Framework name: Angular
  • Framework version: v8
  • Moveable Component version: 0.9.4.0
  • Testable Address(optional):

Description


Hi, @daybrush
How are you?
I hope to receive your kind suggestion.
I am going to move target by user input instead of mouse dragging.
But, only target is moved, doesn't move balls and border.

TinyTake-by-MangoApps-11-02-2020-04-34-57
image

How can I move target and border Both?
Thanks.

Angular question

Most helpful comment

@Xumochuan
There is a similar method, but then call updateTarget.

I don't know why. Is setProperty asynchronous?

All 6 comments

@Xumochuan

Call moveable.updateRect() after input

Hi, @daybrush
Thanks for your kind reply,
I have tried, but it didn't solve my issue. It doesn't move Rect.

image

Hope your kind contact again.
Thanks

@Xumochuan

Does nothing happen when you call updateRect?
Or do you have any other reactions?

Hi, @daybrush
When I call updateRect(), it works nothing. no effect.

@Xumochuan
There is a similar method, but then call updateTarget.

I don't know why. Is setProperty asynchronous?

Hi, @daybrush
I have solved issue. Issue was in async.
This works for me.
image

Thanks so much, @daybrush

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ajinkya-dev picture ajinkya-dev  路  3Comments

adityakrshnn picture adityakrshnn  路  4Comments

plotpoi picture plotpoi  路  4Comments

jiseopX picture jiseopX  路  4Comments

darsodango picture darsodango  路  3Comments