Skip to content

Commit 38260d0

Browse files
author
zhangxinxu
committed
update for test
update for test, a problem cause by iScroll
1 parent d7ccae4 commit 38260d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/complex/js/wechat.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ Mobilebone.onpagefirstinto = function(pageinto) {
1111

1212

1313
// bind custom scroll events for content
14-
new IScroll(pageinto.querySelector(".content"), {
15-
preventDefault: false
14+
var weChatScroll = new IScroll(pageinto.querySelector(".content"), {
15+
preventDefaultException: {
16+
tagName: /^(A|INPUT|TEXTAREA|BUTTON|SELECT)$/
17+
}
1618
});
19+
20+
console.dir(weChatScroll.options);
1721
};
1822

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

0 commit comments

Comments
 (0)