xamarin/Xamarin.Forms

Image Rotation/Translation/Pan not working correctly on UWP

Aperta

#4898 aperta il 4 gen 2019

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/4 :clock4:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

On UWP: When zooming in on an image, in order to keep the image centered on the screen, it has to be translated in X & Y. Instead of staying centered, the image drifts to the right and top of the page. When panning the zoomed image, the mouse pointer moves ahead of the image instead of moving with it. On rotating the image it will move to 90, 180 and 270 deg but on the next step to return it to 0 deg the image remains at 270 deg. On rotating it once more, it will move to 90 as expected. On Android and iOS the image behaves as expected

Steps to Reproduce

  1. Run up the sample app on UWP
  2. The red box marks the center of the image
  3. Zoom in. The image will drift off center
  4. Repeat on Android and iOS. The image will remain centered on the screen.
  5. On UWP, rotate the image. It will not be possible to return to the upright position.
  6. On UWP, pan the zoomed image. The mouse pointer will move ahead of the image.

Basic Information

  • Version with issue: 3.4.0.1009999
  • Last known good version: 2.5
  • IDE: Visual Studio Professional 2017

Reproduction Link

ImageTest.zip

Guida contributor