| Issue 13: | 'Scroller' div has all styles removed/replaced | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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)");
Jul 5, 2010
(No comment was entered for this change.)
Status:
Fixed
|
Owner: matt3o