Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Add support for tap-and-drag image zoom #430

Open
geominorai opened this issue Aug 22, 2022 · 3 comments
Open

[REQ] Add support for tap-and-drag image zoom #430

geominorai opened this issue Aug 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@geominorai
Copy link

Describe the problem that needs solving

The current image player on v3.0.0-beta1 only supports pinch zooming but not double-tap or tap-and-drag gestures used in other media player or image gallery apps for one-handed operation and accessibility.

Describe the solution you'd like

Double-tapping should zoom in a fixed amount while tap-and-drag should start and adjust zoom depending on the distance dragged.

These zooming gestures can also apply to the video player, which currently does not support zooming at all.

For reference, please see the image and media player implementation in the Sync for Reddit app.

@geominorai geominorai added the enhancement New feature or request label Aug 22, 2022
@jonjomckay jonjomckay added this to the v3.0.0 milestone Aug 23, 2022
@geominorai
Copy link
Author

That is only double-tap zooming. This requests for tap-and-drag zooming. Here are some examples in other apps:

Sync.Drag.Zooming.mp4
Gallery.Drag.Zooming.mp4

The latter app is open-source: https://github.com/SimpleMobileTools/Simple-Gallery

@jonjomckay jonjomckay reopened this Sep 18, 2022
@jonjomckay
Copy link
Owner

From what I can find, this isn't yet possible in Flutter.

There is a PR (flutter/flutter#109573) that looks like it adds support for double tap and drag, but it's not merged yet. Once it's merged, I'll try and implement this using those primitives.

@jonjomckay jonjomckay removed this from the v3.0.0 milestone Sep 18, 2022
@geominorai
Copy link
Author

Sounds good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants