Skip to content

Commit 32c19c9

Browse files
author
Brad Birdsall
committed
Merge pull request #406 from x-cray/patch-1
Reset 'width' and 'left' style properties in kill()
2 parents 144183b + 86c96ea commit 32c19c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swipe.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,16 +519,16 @@ function Swipe(container, options) {
519519
stop();
520520

521521
// reset element
522-
element.style.width = 'auto';
523-
element.style.left = 0;
522+
element.style.width = '';
523+
element.style.left = '';
524524

525525
// reset slides
526526
var pos = slides.length;
527527
while(pos--) {
528528

529529
var slide = slides[pos];
530-
slide.style.width = '100%';
531-
slide.style.left = 0;
530+
slide.style.width = '';
531+
slide.style.left = '';
532532

533533
if (browser.transitions) translate(pos, 0, 0);
534534

0 commit comments

Comments
 (0)