Skip to content

Instantly share code, notes, and snippets.

@tanegame
Created November 9, 2018 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanegame/3e810041309684ebf3a7b0af72835224 to your computer and use it in GitHub Desktop.
Save tanegame/3e810041309684ebf3a7b0af72835224 to your computer and use it in GitHub Desktop.
Animate CC : HTML5 Canvas でパブリッシュしてiOSで mousedown を使うためのjsコード
if (createjs.Touch.isSupported()) {
createjs.Touch.enable(stage, true);
}
@tanegame
Copy link
Author

もともと、Animate CC の HTML5 Canvas でパブリッシュしたHTMLをiframeタグでワードプレスに貼り付けてiOSで見ると思ったような操作ができませんでした。
・画面をタップする度に暗くなる
・mousedownが効かない
これらの不具合を解消するために、このコードをflaファイルのメインタイムラインの初めのフレームに書き込んだどころ、これらの不具合は解消されました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment