Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create JS animation flashes when scrolling viewport on Android

New Here ,
Dec 01, 2016 Dec 01, 2016

I have a small animation exported as Create JS for part of a web page - this isn't a fullscreen animation. It looks fine on the iphone and on the desktop but on Android 6.0 Chrome the animation flashes on and off (briefly disappears completely then back again) when you scroll the viewport with your finger - it doesn't look great. Does anyone know how to get around this?

571
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 01, 2016 Dec 01, 2016

You need to add lines to your HTML to prevent the canvas area of the screen from highlight, and often you want to prevent it from scaling. These lines near the top of the HTML would help:

<meta name="viewport" content="user-scalable=no">

<style type="text/css"> 

* { 

    -webkit-touch-callout: none; 

    -webkit-user-select: none; 

  -webkit-tap-highlight-color: rgba(0,0,0,0);

</style> 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2016 Dec 01, 2016

Thanks for the reply Colin. I've tried what you've suggested but unfortunately there is no change to the behaviour.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 07, 2016 Dec 07, 2016
LATEST

It would appear to be the responsive javascript code that Adobe Animate produces that does not work correctly on Android Chrome. Setting the responsive parameter to false doesn't fix the issue but actually removing the whole 'makeResponsive' function does fix the issue BUT the animation is now obviously not responsive.

Bring back Flash - at least it worked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines