Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touches stop working after some time #12

Closed
MaeseppTarvo opened this issue Oct 2, 2020 · 6 comments
Closed

Touches stop working after some time #12

MaeseppTarvo opened this issue Oct 2, 2020 · 6 comments

Comments

@MaeseppTarvo
Copy link
Contributor

MaeseppTarvo commented Oct 2, 2020

Hey! What can cause a problem where touches work for some time but then suddenly do not anymore? I tried debugging but I can not find a place where it stops working. I found out that both start and move functions do return values. Just that the card itself won't be affected by the changes.

Does my case go under one of the following descriptions I found from TODO list in README.

  1. The mobile end may accidentally touch VueTinder when the finger slides back.
  2. In non-sync mode, press and hold the card immediately after the operation. If the front card disappears completely, the DOM node will be stuck after being removed, and the Touchend and Touchcancel events in the component will not be triggered.

For me it seems like it does not have to be completed operation nor in sync mode to reproduce the second item in the list.

These are my parameters on vue-tinder itself:

<vue-tinder
      v-if="items.length > 0"
      ref="tinder"
      :allow-super="true"
      key-name="id"
      :pointer-threshold="1.0"
      :super-threshold="1.0"
      :queue.sync="items"
      @submit="submit"
      @update:queue="onListUpdate"
    />

Here is illustration about this:

@MaeseppTarvo MaeseppTarvo changed the title Touch not working after some time Touches stop working after some time Oct 2, 2020
@CesarGomezTissini
Copy link

CesarGomezTissini commented Oct 7, 2020

Same here, and not only with touches. Buttons too.

@shanlh
Copy link
Owner

shanlh commented Oct 9, 2020

When I click button fast and frequent, then touch card suddenly, buttons will be stop working and card seems to be frozen.
But if I touch the card again, it will back to normal.
Did you talking about this situation?
I'm hard to find a way that make touches stop working.😅

@Allwithyou999
Copy link

Allwithyou999 commented Oct 9, 2020 via email

@shanlh
Copy link
Owner

shanlh commented Oct 9, 2020

I don't have Galaxy, so I used simulator(Android 6.0.1) and repeat above steps, it didn't crashed, only be frozen, if you touch again it will back to normal.

@shanlh
Copy link
Owner

shanlh commented Oct 9, 2020

Resolved. #13

@shanlh shanlh closed this as completed Oct 9, 2020
@CesarGomezTissini
Copy link

I was able to reproduce when re-mock cards stack. I mean, in onSubmit method, you call mock method when array length < 3. I did reproduce doing something similar but when array length == 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants