image preview

This commit is contained in:
cookfront
2017-03-15 20:56:37 +08:00
parent bf710d1261
commit 0bf7852f0b
8 changed files with 68 additions and 50 deletions

View File

@@ -49,7 +49,6 @@ extend(Scroll.prototype, {
left: 0,
width: '100%',
height: '100%',
display: 'block',
'-webkit-transform': 'translate3d(-9999px, 0, 0)',
'pointer-events': 'none'
};
@@ -75,6 +74,7 @@ extend(Scroll.prototype, {
page = this.getCurrentPage();
if (page) {
page.style['-webkit-transform'] = 'translate3d(' + offset + 'px, 0, 0)';
page.style['display'] = 'block';
}
leftPage = this.pages[this.mapLoopPage(currentOffsetPage - 1)];