mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): fix typescript errors
This commit is contained in:
@@ -38,11 +38,11 @@ export class ItemSlidingGesture extends DragGesture {
|
||||
};
|
||||
}
|
||||
|
||||
onDragStart(ev) {
|
||||
onDragStart(ev): boolean {
|
||||
let itemContainerEle = getItemConatiner(ev.target);
|
||||
if (!itemContainerEle) {
|
||||
console.debug('onDragStart, no itemContainerEle');
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
this.closeOpened(itemContainerEle);
|
||||
@@ -63,6 +63,8 @@ export class ItemSlidingGesture extends DragGesture {
|
||||
this.set(itemContainerEle, 'startX', ev.center[this.direction]);
|
||||
|
||||
this.dragEnded = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
onDrag(ev) {
|
||||
|
||||
Reference in New Issue
Block a user