mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27: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({
|
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||||
el: this.scrollEl!,
|
el: this.scrollEl!,
|
||||||
gestureName: 'refresher',
|
gestureName: 'refresher',
|
||||||
gesturePriority: 10,
|
gesturePriority: 31,
|
||||||
direction: 'y',
|
direction: 'y',
|
||||||
threshold: 5,
|
threshold: 5,
|
||||||
onStart: () => {
|
onStart: () => {
|
||||||
@ -289,7 +289,7 @@ export class Refresher implements ComponentInterface {
|
|||||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||||
el: this.scrollEl!,
|
el: this.scrollEl!,
|
||||||
gestureName: 'refresher',
|
gestureName: 'refresher',
|
||||||
gesturePriority: 10,
|
gesturePriority: 31,
|
||||||
direction: 'y',
|
direction: 'y',
|
||||||
threshold: 5,
|
threshold: 5,
|
||||||
canStart: () => this.state !== RefresherState.Refreshing && this.state !== RefresherState.Completing && this.scrollEl!.scrollTop === 0,
|
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({
|
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||||
el: contentEl,
|
el: contentEl,
|
||||||
gestureName: 'refresher',
|
gestureName: 'refresher',
|
||||||
gesturePriority: 10,
|
gesturePriority: 31,
|
||||||
direction: 'y',
|
direction: 'y',
|
||||||
threshold: 20,
|
threshold: 20,
|
||||||
passive: false,
|
passive: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user