mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-29 22:33:41 +00:00
更新
This commit is contained in:
@@ -146,4 +146,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var lastY;
|
||||
document.body.addEventListener('touchmove', function (event) {
|
||||
lastY = event.changedTouches[0].clientY;
|
||||
});
|
||||
document.body.addEventListener('touchmove', function (event) {
|
||||
var y = event.changedTouches[0].clientY;
|
||||
var st = this.scrollTop;
|
||||
if (y >= lastY && st <= 10) {
|
||||
lastY = y;
|
||||
event.preventDefault();
|
||||
}
|
||||
lastY = y;
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user