Commit b87e95e9 by doszhang

dos

parent c0eee663
...@@ -149,7 +149,7 @@ $(document).ready(function () { ...@@ -149,7 +149,7 @@ $(document).ready(function () {
document.body.addEventListener('touchstart', function () {}, false); document.body.addEventListener('touchstart', function () {}, false);
$(".index-scroll").on("touchstart", function (e) { $(".question-page").on("touchstart", function (e) {
// 判断默认行为是否可以被禁用 // 判断默认行为是否可以被禁用
if (e.cancelable) { if (e.cancelable) {
// 判断默认行为是否已经被禁用 // 判断默认行为是否已经被禁用
...@@ -160,7 +160,7 @@ $(document).ready(function () { ...@@ -160,7 +160,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-scroll").on("touchend", function (e) { $(".question-page").on("touchend", function (e) {
// 判断默认行为是否可以被禁用 // 判断默认行为是否可以被禁用
if (e.cancelable) { if (e.cancelable) {
// 判断默认行为是否已经被禁用 // 判断默认行为是否已经被禁用
...@@ -518,6 +518,7 @@ function nextQuestion(e) { ...@@ -518,6 +518,7 @@ function nextQuestion(e) {
} }
function chooseAnswer(e) { function chooseAnswer(e) {
e.stopPropagation();
let node = $(e.target); let node = $(e.target);
$('.question' + nowQuestionIndex + '-block .answer-active').hide(); $('.question' + nowQuestionIndex + '-block .answer-active').hide();
if (node.attr('class').indexOf('active') != -1) { if (node.attr('class').indexOf('active') != -1) {
......
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