moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Use moveable in Vue project, bind resize event param to moveable target, the effect is not normal

Open chenp1204 opened this issue 3 years ago • 1 comments

Environments

  • Framework name: Vue
  • Framework version:
  • Moveable Component version:
  • Testable Address(optional):

Description

Hi @daybrush , I find moveable in Vue, resize event param binding to target, resize effect is not normal,jitter and stutter and incorrect position here is my test demo,

https://codesandbox.io/s/red-http-s870w?file=/src/App.vue

Thank you very much for your help

chenp1204 avatar Nov 29 '21 09:11 chenp1204

@chenp1204

I'm sorry. Unfortunately. Asynchronous is not yet supported in Moveable. Therefore, you have to specify the style directly.

e.target.style.cssText += `width: ${width}px; height: ${height}px; left: ${left}px; top: ${top}px`;

daybrush avatar Nov 29 '21 13:11 daybrush