javascript - using both useTransform:false and zoom:true in iscroll4, zooming is not working -


this code,

var myscroll;                                      function scroll() {                                          myscroll = new iscroll('wrapper', {                                                                checkdomchanges: false,                                                                usetransform: false,                                                                onbeforescrollstart: function (e) {                                                                var target = e.target;                                                                while (target.nodetype != 1) target = target.parentnode;                                                                 if (target.tagname != 'select' && target.tagname != 'input' && target.tagname != 'textarea')                                                                e.preventdefault();                                                                },                                                                zoom: true                                                                  });                                         settimeout(function () { myscroll.refresh(); }, 0);                                      }                                       document.addeventlistener('touchmove', function (e) { e.preventdefault(); }, false);                                     document.addeventlistener('domcontentloaded', scroll);   

when remove usetransform:false line, zooming in iscroll working.when try above code, zoom not working. need use usetransform:false operations in application. how make work zoom if use usetransform:false line. pl me.

i'm not 100% sure i'd assume iscroll needs use transforms zoom it's using transform: scale(x) property emulate zoom scaling content.

therefore don't think you'll able this.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -