Browse files

index: make sure to give extra room for zoom changes

  • Loading branch information...
1 parent 3dcded3 commit 731a4b529a43ae5c02c1f85338434c6704b1d387 @rauchg rauchg committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -46,7 +46,7 @@ Emitter(Swipe.prototype);
Swipe.prototype.refresh = function(){
this.total = this.child.children.length;
this.childWidth = this.el.getBoundingClientRect().width;
- this.width = this.childWidth * this.total | 0;
+ this.width = Math.ceil(this.childWidth * this.total) + 10;
this.child.style.width = this.width + 'px';
this.child.style.height = this.height + 'px';
if (null != this.current && this.current > -1) {

0 comments on commit 731a4b5

Please sign in to comment.