Skip to content

[Question] How can I listen to zoom events and/or perform zoom in/out via code? #3

@vedant1811

Description

@vedant1811

Hello, big thanks on giving this awesome example!

Now, in addition to this, I want to show an icon (in the top-right) that indicates that this photo is zoomable. The behaviour, I imagine, could be to show an icon that is shown in the zoomed out state and fades out when the user zooms in.
I can manage to get an overlay working, but I don't know where I can hook in to listen to a meaningful zoom gesture.

Also, I want to zoom in (a reasonable amount) when the user double taps (or zooms out, if the image is zoomed in). How can I dispatch zoom events via code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions