jianzhongli / MathView

A library for displaying math formula in Android apps.
Apache License 2.0
1.01k stars 188 forks source link

Unable to scroll after update #15

Open eric-tong opened 8 years ago

eric-tong commented 8 years ago

Hi,

I have a MathView with a fixed height that can't seem to be scrolled after the latest update. I suspect it is due to the following snippet:

    // disable touch event on MathView
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return false;
    }

I'm using a ScrollView to wrap the MathView (set to WRAP_CONTENT) which works fine, but it'll be great if the MathView can handle scroll events too.

Thank you very much.

jianzhongli commented 8 years ago

Hi @eric-tong , I am sorry for your inconvenience because of my mistake.

The snippet is a try for fixing issue #12. But apparently it introduced this bug. I am learning Android's input touch event system, and hopefully an update in a few days will fix this bug. Before then, please keep using the previous version.

eric-tong commented 8 years ago

Hi @kexanie, no worries and thank you for the quick response :)