Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

custom scrollbar stops working in EdgeCC

$
0
0

I have found an interesting problem where a call to mCustomScrollbar (V2.8) in EdgeCC only works once.

It is worth noting that this problem did *not* occur in prior versions of Edge.

 

The following code will work the first time it is executed in EdgeCC (i.e the scrollbar appears and works fine),

but the next time the timeline returns to run this code again, the html is displayed (as static text), but *without* the scrollbar.

 

Any ideas what changed in either EdgeCC, or mCustomScrollbar (V2.8) ?  

Thanks

 

sym.$("Contents").html("<p>Page1 Dolor sit amet risus quis, etc...</p>");

 

sym.$("Contents").mCustomScrollbar({

     autoDraggerLength:true,

     scrollInertia:800,

     mouseWheel:{

           enable: true,

          scrollAmount: 60

     }

});

 

==== Just for the record, these are the js files loaded on the Stage =====

yepnope({nope:[ 'css/jquery.mCustomScrollbar_v2.8.css',

                     'js/jquery.mCustomScrollbar.concat.min_v3.1.11.js',

                     'js/jquery.mCustomScrollbar_v2.8.7.js',

                     'js/jquery-1.9.1.min.js',

                    ],complete: init});

function init (){


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>