Skip to content

Instantly share code, notes, and snippets.

@yonekawa
Created August 27, 2012 08:17
Show Gist options
  • Save yonekawa/3486648 to your computer and use it in GitHub Desktop.
Save yonekawa/3486648 to your computer and use it in GitHub Desktop.
diff --git a/enchant.js b/enchant.js
index bf83ff1..0d0ed17 100644
--- a/enchant.js
+++ b/enchant.js
@@ -1809,7 +1809,8 @@ enchant.Sprite = enchant.Class.create(enchant.Entity, {
if (this._dirty) {
this._style[enchant.ENV.VENDOR_PREFIX + 'Transform'] = [
'rotate(', this._rotation, 'deg)',
- 'scale(', this._scaleX, ',', this._scaleY, ')'
+ 'scale(', this._scaleX, ',', this._scaleY, ')',
+ 'translate3d(0,0,0)'
].join('');
this._dirty = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment