|
@@ -195,6 +195,8 @@ const touchend = e => {
|
|
|
const touchmove = e => {
|
|
|
const cha = startY - e.changedTouches[0].clientY;
|
|
|
if (main.value.scrollTop <= 1 && cha < 0) e.preventDefault();
|
|
|
+ const ele = getinnerele()
|
|
|
+ if (cha > 0 && main.value.offsetHeight + main.value.scrollTop >= ele.offsetHeight ) e.preventDefault();
|
|
|
};
|
|
|
|
|
|
const getinnerele = () => {
|