|
@@ -489,10 +489,10 @@ let slideTopics = (() => {
|
|
|
//单点触摸的时候
|
|
|
if (touchList0.length == 1 && touchList1.length == 1) {
|
|
|
console.log(touchList1[0].clientX - touchList0[0].clientX);
|
|
|
- if (touchList1[0].clientX - touchList0[0].clientX > 160) {
|
|
|
+ if (touchList1[0].clientX - touchList0[0].clientX > -160) {
|
|
|
nextTopics();
|
|
|
touchList0 = e.changedTouches;
|
|
|
- } else if (touchList1[0].clientX - touchList0[0].clientX < -160) {
|
|
|
+ } else if (touchList1[0].clientX - touchList0[0].clientX < 160) {
|
|
|
backTopics();
|
|
|
touchList0 = e.changedTouches;
|
|
|
}
|