Topic: Wrong zoom on point position calculation when hovering an UI marker
Hello,
I'm using markers with classic Unity UI. I'm not using any of the marker managers. I'm having a markers container just after the map texture in the hierarchy. I'm using a Map render texture and map camera that renders that texture on RawImage. I'm using OnlineMapsRawImageTouchForwarder.
When I hover over a marker and I use mouse scrollwheel the map zoom is changing. But the input position is wrong - it always zooms to (0, 0).
Is it somehow possible to fix that?
Wrong value comes from:
OnlineMapsRawImageTouchForwarder.OnGetInputPosition()
OnlineMapsControlBase.GetInputPosition()
OnlineMapsControlBase.HitTest()
OnlineMapsControlBase.UpdateZoom()
Also when my mouse is outside the raw image (on other part of the UI) mouse scroll wheel still is zooming the map, which is annoying. There should be a check whether I'm over the map on the UI.
Thanks for help