Skip to content

Commit 54c92ae

Browse files
committed
fix(PullDownRefresh): dragging eventhandle is also supported when disabled is true
1 parent 187ac96 commit 54c92ae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/pull-down-refresh/pull-down-refresh.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,18 @@ export default class PullDownRefresh extends SuperComponent {
161161
},
162162

163163
onDragStart(e: WechatMiniprogram.ScrollViewDragStart) {
164-
if (this.properties.disabled) return;
165164
const { scrollTop, scrollLeft } = e.detail;
166165

167166
this.triggerEvent('dragstart', { scrollTop, scrollLeft });
168167
},
169168

170169
onDragging(e: WechatMiniprogram.ScrollViewDragging) {
171-
if (this.properties.disabled) return;
172170
const { scrollTop, scrollLeft } = e.detail;
173171

174172
this.triggerEvent('dragging', { scrollTop, scrollLeft });
175173
},
176174

177175
onDragEnd(e: WechatMiniprogram.ScrollViewDragEnd) {
178-
if (this.properties.disabled) return;
179176
const { scrollTop, scrollLeft } = e.detail;
180177

181178
this.triggerEvent('dragend', { scrollTop, scrollLeft });

0 commit comments

Comments
 (0)