Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setObjectPosition 한 후에 마우스로 Object를 선택할 수 없는 문제 #21

Closed
dongsik-yoo opened this issue Sep 5, 2017 · 0 comments
Assignees
Labels

Comments

@dongsik-yoo
Copy link
Contributor

Version

3.0.0

Development Environment

Chrome 60

Current Behavior

tui image editor의 setObjectPosition() 동작에 대해 문의드립니다.
image object를 추가 한 후 setObjectPosition() API를 통해 위치를 변경하였을 때
변경된 위치에서 object가 선택되지 않고, 변경되기 전 위치에서 object가 선택됩니다.

동작은 아래 순서로 수행한 것입니다.

  1. addImageObject()로 이미지 추가
  2. 추가한 object를 비활성(deactivate) 상태로 변경 (활성상태일 때도 동일한 현상 발생)
  3. setObjectPosition()로 이미지 이동 ({x: 100, y: 100, originX: 'center', originY: 'center'})
  4. 이동한 위치에서 object 활성화(activate) 안됨, 이동전 위치를 클릭하면 활성화(activate) 됨
imageEditor.setObjectPosition(activeObjectId, {
  x: 200,
  y: 300,
  originX: 'center',
  originY: 'center'
});

// And click it

Expected Behavior

이동한 위치에 마우스 클릭하였을 때도 활성화 되어야 함.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant