Commit 86657bc8 by doszhang

dos

parent f57b63d6
...@@ -137,7 +137,7 @@ $(document).ready(function () { ...@@ -137,7 +137,7 @@ $(document).ready(function () {
//滚动条 //滚动条
$('.rule-block').on('scroll', ruleScroll); $('.rule-block').on('scroll', ruleScroll);
$(".index-block").on("touchstart", function (e) { $(".question-block").on("touchstart", function (e) {
// 判断默认行为是否可以被禁用 // 判断默认行为是否可以被禁用
if (e.cancelable) { if (e.cancelable) {
// 判断默认行为是否已经被禁用 // 判断默认行为是否已经被禁用
...@@ -148,7 +148,7 @@ $(document).ready(function () { ...@@ -148,7 +148,7 @@ $(document).ready(function () {
startX = e.originalEvent.changedTouches[0].pageX, startX = e.originalEvent.changedTouches[0].pageX,
startY = e.originalEvent.changedTouches[0].pageY; startY = e.originalEvent.changedTouches[0].pageY;
}); });
$(".index-block").on("touchend", function (e) { $(".question-block").on("touchend", function (e) {
// 判断默认行为是否可以被禁用 // 判断默认行为是否可以被禁用
if (e.cancelable) { if (e.cancelable) {
// 判断默认行为是否已经被禁用 // 判断默认行为是否已经被禁用
...@@ -162,11 +162,11 @@ $(document).ready(function () { ...@@ -162,11 +162,11 @@ $(document).ready(function () {
Y = moveEndY - startY; Y = moveEndY - startY;
//左滑 //左滑
if (X > 0) { if (X > 0) {
nextQuestion('indexbar'); prevQuestion();
} }
//右滑 //右滑
else if (X < 0) { else if (X < 0) {
prevQuestion(); nextQuestion('indexbar');
} }
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment