Skip to content

Pinch-to-zoom crashes app #5

@diiq

Description

@diiq

Hi there! It seems like pinch-to-zoom crashes this example app.

Steps to reproduce:

  • Build the app from master
  • Start the app on a touch-enabled device
  • Open an image from the library
  • Zoom in using fingers

Zooming in far enough crashes the app (you don't have to zoom very far — one un-pinch seems to be enough most times).

The exception's error message is "Cannot create CanvasImageSource sized [X BY Y]; MaximumBitmapSizeInPixels for this device is [X - 1]," where X and Y are, I assume, device-specific.

A maximum zoom makes sense, but the app should probably disallow zooming past that point, rather than crashing irrecoverably.

Even not having zoom at all might be better than a sample app that crashes...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions