File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/pages/miscellaneous/tinder-cards Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ export class TinderCardsPage {
24
24
recentCard : string = '' ;
25
25
26
26
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
+ } ;
38
38
}
39
39
40
40
ngAfterViewInit ( ) {
You can’t perform that action at this time.
0 commit comments