Topic: Why "Not interact under gui (true)" doesn't work

Hi Alex. Why  "Not interact under gui (true)" doesn't work with double tap on Android? I have a side by side with a panel (Raycast Target - ON) and the map. With just one touch everything is ok. I use OnlineMaps 3.5

Re: Why "Not interact under gui (true)" doesn't work

Hello.

I just tested this and it works correctly:
https://www.dropbox.com/s/04xwo4q0kq9rt … I.apk?dl=0

P.S. I tested the latest version of the asset as I see no point in testing the version of the asset that was released a year and a half ago.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Why "Not interact under gui (true)" doesn't work

Sorry Alex, the problem is also on the v. 3.7.9.1. I only added an image panel above the mat and if I double tap on the panel the map zooms

Post's attachments

Attachment icon 2T.jpg 269.39 kb, 85 downloads since 2021-03-20 

Re: Why "Not interact under gui (true)" doesn't work

I tested this and attached an apk to show it works correctly on my side.
If this does not work on your side, please send me your project for testing by email (support@infinity-code.com).

To make it clear:
I don't need your working project.
I need any temporary project where the problem is happening.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Why "Not interact under gui (true)" doesn't work

Thanks for the project.
I sent you a patch by email.

But, in this thread, you are constantly talking about double tap, which works correctly on my side, even in your project.
And in your scenes it is drawn that I need to use the pinch to zoom gesture.
The patch fixes the behavior when pinch to zoom starts on Canvas.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Why "Not interact under gui (true)" doesn't work

Thanks Alex, stupid translation mistake, sorry, but we haven't received any e-mails

Re: Why "Not interact under gui (true)" doesn't work

It’s strange. Send me an email (support@infinity-code.com) and I will send you the patch link in the reply.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Why "Not interact under gui (true)" doesn't work

Thanks Alex! This solves the problem ! Thanks !

if (touchCount != lastGestureTouchCount)
        {
            lastGestureTouchCount = touchCount;
            if (touchCount == 2)
            {
                if (map.notInteractUnderGUI)
                {
                    Vector2 pos = (touchPositions[0] + touchPositions[1]) / 2;
                    if (HitTest(pos) && !IsCursorOnUIElement(pos)) StartGestureZoom();
                }
                else StartGestureZoom();
            }
            else if (smoothZoomStarted) StopGestureZoom();
        }