Pinch and Zoom detection inconsistency

Hi.

I am hoping someone can help me.
I am experiencing an issue where even though the events are firing, nothing is happening.
It works when the game is launched for the first time. After a few seconds it no longer works even though i can see the events are still firing.

I might be doing something wrong but considering it works a while then stops working, perhaps my method of doing is incorrectly implemented or something.

Some advise would be much appreciated.

Just some more information.
I picked up that what happens is, sometimes if you keep your fingers in place, and wait 10 seconds it works.

So sometimes it just takes very long to work.
And on rare lucky occasions it works with almost no delay.

But majority after the initial zoom action it just pauses for extreme periods. :frowning:

Finally fixed this issue.

Seems there was a problem with the negative values so i just did a simple compare and inverted negative values. I also set all the variables back to 0 if you release the key to prevent bugs that occurred occasionally where it would get stuck not know if its zooming in or out.

Hi,

I am trying to implement this method and I am having similar issues.

What values do you invert and what variables do you reset?

Thank you

Hi. Apologies. I thought i responded to this months ago. Im not sure if you still need this due to there now being a pinch input. If you do let me know.

Hi,
there’s a pinch input now, really? I cannot find it anywhere in the BP nodes…

There is one yes. Add it under your project settings, input.
I dont know if it works yet. Last time i tested in 4.6.1 it still had issues.

Found! Thanks! :slight_smile:

Hi Crocopede

I also try to create function “pinch to zoom”, whether you managed to do this? you use a pinch input or do it your own way?

Hi.
I used my own method due to the engine one not putting out values correctly.
The pictures in the first post should show you how to implement you own version.