Skip to content

Commit

Permalink
fix(gestures): change itemSliding gesture priority
Browse files Browse the repository at this point in the history
Closes #15608
  • Loading branch information
mhartington committed Sep 18, 2018
1 parent 407b147 commit 48927e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4019,7 +4019,7 @@ export namespace Components {
* The text to display on the ok button. Default: `OK`.
*/
'okText': string;
'open': (ev?: UIEvent | undefined) => Promise<HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement>;
'open': (ev?: UIEvent | undefined) => Promise<HTMLIonPopoverElement | HTMLIonActionSheetElement | HTMLIonAlertElement>;
/**
* The text to display when the select is empty.
*/
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item-sliding/item-sliding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class ItemSliding implements ComponentInterface {
el: this.el,
queue: this.queue,
gestureName: 'item-swipe',
gesturePriority: 20,
gesturePriority: 100,
threshold: 5,
canStart: () => this.canStart(),
onStart: () => this.onStart(),
Expand Down
11 changes: 11 additions & 0 deletions core/src/components/nav/test/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ <h1>Page Two</h1>
<ion-button class="next">Go to Page Two</ion-button>
</ion-nav-push>
</div>
<ion-list>
<ion-item-sliding>
<ion-item>Some item</ion-item>
<ion-item-options>
<ion-item-option>
Some options
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
</ion-list>
</ion-content>
`;
}
Expand Down

0 comments on commit 48927e6

Please sign in to comment.