While "Scale to Fit" and "Lock aspect ratio" are disabled, Canvas PowerApps on the device will not register correct coordinates of html click event on the screen.
- Create a new Canvas App (Phone format)
- In Settings, Display, disable "Scale to Fit" and "Lock aspect ratio"
- Import the MapComponent code component
- Set the MapComponent properties as follow:
- ScreenOrientation: App.ActiveScreen.Orientation
- ScreenWidth: App.ActiveScreen.Width
- ScreenHeight: App.ActiveScreen.Height
- Width: App.ActiveScreen.Width
- Height: App.ActiveScreen.Height
- Publish the PowerApp and test it on a Smartphone
- Rotate the device in landscape mode you will an image. Clicking on the image (eg. on the right side of it), you will see that the property "clientX" of the html click event shown in the alert, is not compliant to where you really clicked on the screen (it appears to be half of the pixels)