@@ -177,7 +177,15 @@ const touchend = e => {
};
const touchmove = e => {
- e.preventDefault();
+ let nodes = main.value.childNodes || [];
+ let sondiv = null;
+ for (let i = 0; i < nodes.length; i++) {
+ const ele = nodes[i];
+ if (ele.localName !== 'div') continue;
+ if (sondiv) break;
+ sondiv = ele;
+ }
+ if (sondiv.scrollTop == 0) e.preventDefault();
</script>
<style lang="scss">