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

fix: fixed Text object -> ITextObject (fix #262 #109) #352

Merged
merged 4 commits into from
Jun 16, 2020

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Mar 5, 2020

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

버그 원인

  • 예전버전 fabric의 fabric.IText 객체가 모바일에서 동작에 버그가 있어서, 대신하여 임의로 구현하여 사용하는 Text객체의 편집모드의 버그가 많음

해결방법

  • 임의로 구현한 Text객체의 편집모드를 제거하고 fabric에서 편집까지 제공하는 IText만 사용하도록 교체
  • 예전 담당자와 확인하여 모바일에서 잘 동작하면 빼도 되는 부분을 이미 확인했었고. 테스트도 많이 해보았지만 혹시나 하고 일단 남겨놓았던 Text 객체와 편집모드를 제거.

모바일에서의 itext 버그 해결된 부분 확인


Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

@jinwoo-kim-nhn jinwoo-kim-nhn changed the title fix: fixed Text object -> ITextObject fix: fixed Text object -> ITextObject (fix #262 #109) Mar 5, 2020
@jinwoo-kim-nhn
Copy link
Contributor Author

#109

@jinwoo-kim-nhn jinwoo-kim-nhn reopened this Jun 9, 2020
@@ -175,7 +175,6 @@ class ImageEditor {
this.ui ? this.ui.getEditorArea() : wrapper, {
cssMaxWidth: options.cssMaxWidth,
cssMaxHeight: options.cssMaxHeight,
useItext: !!this.ui,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기본 ui 일때만 itext 를 쓰도록 되어있었네요, 기본 ui를 사용 하지 않는 경우에도 문제가 없나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 확인 해봤었는데 문제 없었고, 휴직 전에 작업해던거라서.. 한번 더 확인해보겠습니다.

Copy link
Member

@junghwan-park junghwan-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료입니다! 기본 UI 사용하지 않을때도 잘 동작하는지 확인이 필요할 것 같습니다.

@@ -605,8 +516,8 @@ class Text extends Component {
const newClickTime = (new Date()).getTime();

if (target.isEditing || this._isDoubleClick(newClickTime)) {
if (!this.useItext) {
this._changeToEditingMode(target);
if (!target.isEditing) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target.isEditing 조건문이 true인 경우에도 이 라인까지 들어왔다가 이벤트를 날리네요. 에디팅 중에 마우스업이나 더블 클릭인 경우 이벤트가 다시 한 번 더 날아갈 것 같은데 문제 없는지 확인 필요해 보여요.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 이부분 확인해보고 수정하겠습니다. 리뷰 감사합니다

Copy link
Contributor

@dongsik-yoo dongsik-yoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[06/10] 리뷰 완료합니다. 수고하셨습니다.

@jinwoo-kim-nhn jinwoo-kim-nhn merged commit e20ae82 into master Jun 16, 2020
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
* fix: fixed Text object -> ITextObject

* apply codereview

Co-authored-by: jwc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants