lunar-unity-console icon indicating copy to clipboard operation
lunar-unity-console copied to clipboard

UISwipeGestureRecognizer breaks iOS multitouch

Open zudl opened this issue 5 years ago • 6 comments

While Gesture is set to SwipeDown iOS multitouch have strange behaviour

  1. Put down finger 1 (don't move!)
  2. Put down finger 2 (don't move!)
  3. Remove finger 1 (still don't move your fingers across the screen)
  4. No events for finger 1 (OnPointerUp or Touch.Phase == ended) came until finger 2 is moved

Tested on minimal repro: Unity 2019.2.17f1, Lunar Console Pro 1.6.4, Input Manager, 1 Canvas, several buttons / debug text

zudl avatar Dec 28 '19 10:12 zudl

Hey @zudl,

Would you be able to attach the sample project where you reproduced the issue?

weeeBox avatar Dec 28 '19 17:12 weeeBox

InputTest.zip Hi, @weeeBox Yep, just add Lunar.

zudl avatar Dec 28 '19 19:12 zudl

I have the same issue described. The problem does not happen on all iOS devices (this should make it fun to debug).

Here is a video of it happening on a iPad.

The game is running on Unity 2019.4.3.

iPad 6th Gen Model Number: MR7G2LL/A iOS Version: 13.6

nikescar1 avatar Jul 24 '20 01:07 nikescar1

Hey @nikescar1,

Sorry for the issue. I need more time for the fix but as a quick workaround - try disabling swipe gesture in LunarConsole settings and open the console with an API call:

  • To disable the gesture - change Gesture to None in the prefab settings: Screen Shot 2020-07-26 at 12 11 33 PM
  • To open the console programmatically use: LunarConsolePlugin.LunarConsole.Show()

weeeBox avatar Jul 26 '20 16:07 weeeBox

Hi!

Thanks for the suggestion. I don't think that option will work since there's a couple bugs we're currently tracking that happen at game start before UI loads and during certain transitions in the game.

Thanks for looking in to this though. Lunar Console has been a huge help during development!

nikescar1 avatar Aug 02 '20 10:08 nikescar1

This happened to me as well, Unity 2020.3.14f1 LTS, iPad Pro. It's not a massive problem but prevents us from having LunarConsole active in every build. @weeeBox do you have any other updates? I will try your workaround today

Edit: I am using the new Input System package from Unity

davidejones88 avatar Aug 03 '21 06:08 davidejones88