Permalink
Browse files

Reset 'width' and 'left' style properties in kill()

In order to make use of values defined in CSS we need to clear values set by Swipe.
  • Loading branch information...
x-cray committed Dec 11, 2013
1 parent 144183b commit 86c96eaa3c6177f04330bb606f50049d39079b8e
Showing with 4 additions and 4 deletions.
  1. +4 −4 swipe.js
View
@@ -519,16 +519,16 @@ function Swipe(container, options) {
stop();
// reset element
- element.style.width = 'auto';
- element.style.left = 0;
+ element.style.width = '';
+ element.style.left = '';
// reset slides
var pos = slides.length;
while(pos--) {
var slide = slides[pos];
- slide.style.width = '100%';
- slide.style.left = 0;
+ slide.style.width = '';
+ slide.style.left = '';
if (browser.transitions) translate(pos, 0, 0);

0 comments on commit 86c96ea

Please sign in to comment.