Skip to content

Commit 8d6dc3b

Browse files
committed
Merge pull request #5 from zhangxinxu/develop
Develop, for wechat test page
2 parents 2843d1a + d9bbc44 commit 8d6dc3b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/complex/css/wechat.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ul,ol{ margin: 0; list-style-type: none; }
99
.header.out, .footer.out { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
1010

1111
.header { height: 48px; padding: 0 5px; background-color: #21292B; color: #fff; top: 0; z-index: 1; }
12-
.header > h1 { line-height: 48px; margin: 0 0 0 10px; font-size: 20px; float: left; }
12+
.header > h1 { line-height: 48px; margin: 0 0 0 10px; font-size: 18px; float: left; }
1313
.header > a { display: inline-block; width: 48px; height: 48px; background-size: 48px 144px; text-indent: -9em; overflow: hidden; }
1414
.header > .icon-search, .header > .icon-add { float: right; }
1515
.header > .icon-back { float: left; position: relative; margin-left: -5px; }

test/complex/js/wechat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ Mobilebone.onpagefirstinto = function(pageinto) {
1111

1212

1313
// bind custom scroll events for content
14-
new IScroll(pageinto.querySelector(".content"));
14+
var weChatScroll = new IScroll(pageinto.querySelector(".content"), {
15+
tap: true
16+
});
17+
pageinto.addEventListener('tap', Mobilebone.handleTapEvent, false);
1518
};
1619

1720
Mobilebone.callback = function(pageinto, pageout) {

0 commit comments

Comments
 (0)