Skip to content

Commit

Permalink
fix swiped card movement (#5)
Browse files Browse the repository at this point in the history
* fix swiped card movement

* fix url

* async fetch

* remove setTimeout

* Update swipe.view.ts
  • Loading branch information
stan-donarise committed Jul 10, 2024
1 parent 1a0187e commit ee4d3a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions swipe/swipe.view.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace $.$$ {


export class $optimade_tmdne_swipe extends $.$optimade_tmdne_swipe {

@ $mol_mem
Expand Down Expand Up @@ -37,20 +36,20 @@ namespace $.$$ {

move_to_middle() {
this.transition( this.transition_smooth() )
this.swiped_to('')
this.x( 0 )
this.swiped_to('')
}

swipe_to_right() {
this.transition( this.transition_smooth() )
this.swiped_to( 'right' )
this.x( this.swipe_distance() )
this.swiped_to( 'right' )
}

swipe_to_left() {
this.transition( this.transition_smooth() )
this.swiped_to( 'left' )
this.x( - this.swipe_distance() )
this.swiped_to( 'left' )
}

@ $mol_mem
Expand Down

0 comments on commit ee4d3a8

Please sign in to comment.