iscroll icon indicating copy to clipboard operation
iscroll copied to clipboard

Suggestion - Update Destroy() method to clean scroller styling

Open orenagiv opened this issue 10 years ago • 5 comments

After applying .destory() the style of the scroller remains with -webkit-transform which might cause issues when parent layer are going through transitions.

I suggest to update the .destroy() method so that it will remove any styling from the .scroller.

Currently I workaround this by doing:

scroll.destroy();
$(scroll.scroller).attr('style', '');
scroll = null;

orenagiv avatar Mar 30 '14 18:03 orenagiv

I second this - it seems counter-intuitive (and broke my tests) that a destroy call should not return the DOM to it's original state Thanks

chrisbod avatar Jul 14 '14 10:07 chrisbod

Addiitionally shouldn't the scroller remove it's references to its dom element?

chrisbod avatar Jul 14 '14 10:07 chrisbod

+1

CoderK avatar Sep 02 '16 05:09 CoderK

+1

kmathmann avatar Apr 10 '17 10:04 kmathmann

After doing the above workaround, transition is still remaining on the element. This property is not removed

bandhavya avatar Jan 08 '18 12:01 bandhavya