mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
fix(refresher): refresher gesture now works in side menu (#22446)
resolves #20832
This commit is contained in:
@ -242,7 +242,7 @@ export class Refresher implements ComponentInterface {
|
||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||
el: this.scrollEl!,
|
||||
gestureName: 'refresher',
|
||||
gesturePriority: 10,
|
||||
gesturePriority: 31,
|
||||
direction: 'y',
|
||||
threshold: 5,
|
||||
onStart: () => {
|
||||
@ -289,7 +289,7 @@ export class Refresher implements ComponentInterface {
|
||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||
el: this.scrollEl!,
|
||||
gestureName: 'refresher',
|
||||
gesturePriority: 10,
|
||||
gesturePriority: 31,
|
||||
direction: 'y',
|
||||
threshold: 5,
|
||||
canStart: () => this.state !== RefresherState.Refreshing && this.state !== RefresherState.Completing && this.scrollEl!.scrollTop === 0,
|
||||
@ -405,7 +405,7 @@ export class Refresher implements ComponentInterface {
|
||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||
el: contentEl,
|
||||
gestureName: 'refresher',
|
||||
gesturePriority: 10,
|
||||
gesturePriority: 31,
|
||||
direction: 'y',
|
||||
threshold: 20,
|
||||
passive: false,
|
||||
|
||||
Reference in New Issue
Block a user