Vandzelyak / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
0 stars 0 forks source link

'Scroller' div has all styles removed/replaced #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On line 20 (or thereabouts, depending on the version of iScroll), is the 
following line:

this.element.setAttribute('style', style);

This line effectively removes all previous inline styles set on the DOM 
element.  (Discovered after some pretty long debugging time.)

Please change this piece of code to set the styles as follows:

this.element.style.webkitTransitionProperty = "-webkit-transform";
this.element.style.webkitTransitionTimingFunction = "cubic-bezier(0,0,0.25,1)";
this.element.style.webkitTransitionDuration = "0";
this.element.style.webkitTransform = (has3d? "translate3d(0,0,0)" : 
"translate(0,0)");

Original issue reported on code.google.com by t...@speednet.biz on 3 Jul 2010 at 1:59

GoogleCodeExporter commented 8 years ago
Already in my to-do.

Original comment by mat...@gmail.com on 3 Jul 2010 at 6:10

GoogleCodeExporter commented 8 years ago

Original comment by mat...@gmail.com on 5 Jul 2010 at 1:26