Skip to content

Workaround problematic motion events

Casey Goodlett requested to merge gcasey/vtk:android-touch-crash-fix into master

In some rare cases the action index may not be a index into getPointerId. To workaround this issue do the following

  1. Change the semnatics of HandleMotionEvent to use the pointer id directly rather than looking up from index in C code.

  2. Wrap the java code in a try/catch to catch invalid motion events.

Merge request reports