-
Notifications
You must be signed in to change notification settings - Fork 563
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
解决ios系统无法显示汉字动画的问题 #130
Conversation
@@ -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); |
There was a problem hiding this comment.
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
There was a problem hiding this 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!
I verified it on the ipad 、iphone 6s and an Android device with the WeChat Mini Program,it works well. |
There was a problem hiding this 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
🎉 This PR is included in version 2.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #121