Skip to content

Commit e3c764f

Browse files
committed
fix(): Fix error on tinder cards page
1 parent 0395f5b commit e3c764f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/pages/miscellaneous/tinder-cards/tinder-cards.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ export class TinderCardsPage {
2424
recentCard: string = '';
2525

2626
constructor(public navCtrl: NavController, public http: Http, public toastCtrl: ToastService) {
27-
// this.stackConfig = {
28-
// throwOutConfidence: (offset, element) => {
29-
// return Math.min(Math.abs(offset) / (element.offsetWidth / 2), 1);
30-
// },
31-
// transform: (element, x, y, r) => {
32-
// this.onItemMove(element, x, y, r);
33-
// },
34-
// throwOutDistance: (d) => {
35-
// return 800;
36-
// }
37-
// };
27+
this.stackConfig = {
28+
throwOutConfidence: (offset, element: any) => {
29+
return Math.min(Math.abs(offset) / (element.offsetWidth / 2), 1);
30+
},
31+
transform: (element, x, y, r) => {
32+
this.onItemMove(element, x, y, r);
33+
},
34+
throwOutDistance: (d) => {
35+
return 800;
36+
}
37+
};
3838
}
3939

4040
ngAfterViewInit() {

0 commit comments

Comments
 (0)