|
|
<template>
|
|
|
<div ref="layout" class="layout" @touchstart="webviewScrollStart" @touchmove="webviewScrollMove" @touchend="webviewScrollEnd">
|
|
|
<div ref="layout" class="layout" @touchstart="webviewScrollStart" @touchmove="webviewScrollMove"
|
|
|
@touchend="webviewScrollEnd">
|
|
|
<slot name="header">
|
|
|
<LayoutHeader v-if="!hideHeader"
|
|
|
class="layout-header"
|
...
|
...
|
@@ -60,7 +61,7 @@ export default { |
|
|
|
|
|
this.touchMoveY = e.changedTouches[0].pageY;
|
|
|
|
|
|
if (scrollTop <= 0 && this.touchMoveY > scrollTop ) {
|
|
|
if (scrollTop <= 0 && this.touchMoveY > scrollTop) {
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
this.message = 'scrollTop:' + scrollTop + 'touchmove:' + this.touchMoveY;
|
...
|
...
|
|