imablanco / Zoomy

Zoomy is an easy to use pinch-to-zoom Android library
918 stars 120 forks source link

Image Freeze in multi touch(more than 2 fingers) #24

Closed sumitsonawane closed 1 year ago

sumitsonawane commented 5 years ago

If device having touch gesture(3 fingers swipe) screenshot enabled then Image Freezes on Screen

page1group commented 5 years ago

I hope this code help someone pained multi touch.

We should custom ZoomableTouchListener's onTouch().

Just change if (mAnimatingZoomEnding || ev.getPointerCount() > 2) return true; -> if (mAnimatingZoomEnding || ev.getPointerCount() > 2) { mEndingZoomAction.run(); return true; }

sumitsonawane commented 5 years ago

I hope this code help someone pained multi touch.

We should custom ZoomableTouchListener's onTouch().

Just change if (mAnimatingZoomEnding || ev.getPointerCount() > 2) return true; -> if (mAnimatingZoomEnding || ev.getPointerCount() > 2) { mEndingZoomAction.run(); return true; }

@imablanco can you try this? its working on my side.....

sumitsonawane commented 5 years ago

@page1group thanks for the update.... its works..

imablanco commented 5 years ago

Will try this weekend but it seems very straightforward so I am planning to merge it anyway. Sorry for the delay but I barely have time to check spare projects.

sumitsonawane commented 5 years ago

Will try this weekend but it seems very straightforward so I am planning to merge it anyway. Sorry for the delay but I barely have time to check spare projects.

ok, thanks.

mustafakuloglu commented 4 years ago

I am also facing this problem. Can you merge #30 if you have time?

GorkemKarayel commented 4 years ago

when can you merge ? @imablanco

pratikmhatre commented 3 years ago

I hope this code help someone pained multi touch.

We should custom ZoomableTouchListener's onTouch().

Just change if (mAnimatingZoomEnding || ev.getPointerCount() > 2) return true; -> if (mAnimatingZoomEnding || ev.getPointerCount() > 2) { mEndingZoomAction.run(); return true; }

This solution works great, I just have a small addition to it, to make the zoom out experience better,

if (mAnimatingZoomEnding || ev.getPointerCount() > 2) { if (ev.getPointerCount() > 2) { mEndingZoomAction.run(); } return true; }