Skip to content

Commit

Permalink
解决ios系统无法显示汉字动画的问题 (#130)
Browse files Browse the repository at this point in the history
* 解决ios系统无法显示汉字动画的问题

* delete  Multiple spaces
  • Loading branch information
kevin82008 authored and chanind committed Aug 1, 2019
1 parent 943c617 commit b4e8087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderers/canvas/HanziWriterRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
func(ctx);
ctx.restore();
if (ctx.draw) ctx.draw();
Expand Down

0 comments on commit b4e8087

Please sign in to comment.