Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

zoom-out on image causes crash #2786

Closed
yyportne opened this issue Dec 19, 2018 · 3 comments
Closed

zoom-out on image causes crash #2786

yyportne opened this issue Dec 19, 2018 · 3 comments
Assignees
Milestone

Comments

@yyportne
Copy link

Zoom-out on image causes crash in riot version 0.8.20 (G-b159).

Steps to reproduce:
[1] Open image (image is displayed to fit in the display boundaries)
[2] Try to zoom out
[3] Repeat [2] until crash

I've noticed that in step [2] the image is sometimes displayed a few pixels smaller than the device boundaries before the crash occurs.

@bmarty
Copy link
Member

bmarty commented Dec 19, 2018

Thanks for reporting,

Here is the backstack of the crash

    java.lang.IllegalArgumentException: pointerIndex out of range
        at android.view.MotionEvent.nativeGetAxisValue(Native Method)
        at android.view.MotionEvent.getX(MotionEvent.java:2519)
        at android.support.v4.view.ViewPager.onInterceptTouchEvent(ViewPager.java:2066)
        at im.vector.view.RiotViewPager.onInterceptTouchEvent(RiotViewPager.java:44)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2696)

@bmarty bmarty added this to the Sprint 17 milestone Dec 19, 2018
@yyportne
Copy link
Author

Thank you for addressing this issue.

@bmarty bmarty self-assigned this Dec 21, 2018
@bmarty
Copy link
Member

bmarty commented Dec 21, 2018

Done

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

No branches or pull requests

2 participants