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

解决ios系统无法显示汉字动画的问题 #130

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

kevin82008
Copy link
Contributor

Fixes #121

@@ -20,7 +20,8 @@ HanziWriterRenderer.prototype._animationFrame = function(func) {

ctx.save();
ctx.translate(this._positioner.xOffset, this._positioner.height - this._positioner.yOffset);
ctx.scale(this._positioner.scale, -1 * this._positioner.scale);
ctx.transform(1, 0, 0, -1, 0, 0);
ctx.scale(this._positioner.scale, this._positioner.scale);
Copy link
Owner

Choose a reason for hiding this comment

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

looks like the linter is complaining that there's too many spaces here

Copy link
Owner

@chanind chanind left a comment

Choose a reason for hiding this comment

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

I can't verify if this fixes the miniprogram iOS issue, but it doesn't appear to break anything at least! Just 2 minor things to get this merged:

  • remove the extra space on line 24 before this
  • run yarn test --update-snapshot to update tests

Thanks for submitting this PR!

@kevin82008
Copy link
Contributor Author

I verified it on the ipad 、iphone 6s and an Android device with the WeChat Mini Program,it works well.

Copy link
Owner

@chanind chanind left a comment

Choose a reason for hiding this comment

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

Tests still fail, but I'll fix that after merging

@chanind chanind merged commit b4e8087 into chanind:master Aug 1, 2019
chanind added a commit that referenced this pull request Aug 1, 2019
@chanind
Copy link
Owner

chanind commented Aug 1, 2019

🎉 This PR is included in version 2.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

[Wechat]unhandled promise rejection<TypeError: undefined is not an object(evalating 'charJson.strokes.map')>
2 participants