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

ImageViewer will block any kind of view to scroll up and down #3700

Open
OmidGhotbi opened this issue Apr 28, 2023 · 1 comment
Open

ImageViewer will block any kind of view to scroll up and down #3700

OmidGhotbi opened this issue Apr 28, 2023 · 1 comment

Comments

@OmidGhotbi
Copy link

OmidGhotbi commented Apr 28, 2023

Describe the bug
Adding ImageViewer to any kind of scrollable view will prevent scrolling up and down and the only way is to go outside of imageviewer to be able to scroll.

To Reproduce
Steps to reproduce the behavior:

  1. Create a view
  2. Add a container for imageviewr or use imageviewer directly
  3. Add imageviewr container into the view
  4. Try to scroll up or down when you are touching inside the imageviewer

Expected behavior
Swipe up and down should always scroll the view no matter you are inside imageviewer or any other view component
Like swipe between images and scrolling up and down in Instagram or other applications

  • OS: Same for all OS

  • Device: all devices

Additional context
I need to mention other behavior like .addPointerDraggedListener() not working with imageviewer too, I had to override imageviewer class to be able to get x ,y for pointerDrag, press and release event.
If i setLeadComponent(TopView); scrolling will work perfectly but i will not be able to swipe between images in imageviewer and if .setBlockLead(true); the scrolling up and down will block by imageviewr again.

@OmidGhotbi
Copy link
Author

I solve it with Tabs and ScaleImageLabel, not sure if this is a good way or not, but works as it should.

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

No branches or pull requests

1 participant