Page 2 of 2

Re: (Android) historyPos out of range

Posted: Fri Dec 20, 2013 11:39 am
by 16967658
Here is the same motion but outside the chart (no error).

Re: (Android) historyPos out of range

Posted: Fri Dec 20, 2013 3:56 pm
by yeray
Hello,

I'm not sure if this application indicates what I understand but It looks like you are just doing the following actions, I'm not sure about the order:
- OutOfRange.png: drawing a little zoom rectangle from top-left to bottom-right, inside the chart. If you stop touching the screen after doing this action, you should zoom in.
- OutOfRange2.png: drawing a little zoom rectangle from top-right to bottom-left, inside the chart. If you stop touching the screen after doing this action, you should unzoom.
- OutOfRange3.png: drawing a little zoom rectangle from bottom-right to top-left, inside the chart. If you stop touching the screen after doing this action, you should unzoom.
- OutOfRange4.png: drawing a little zoom rectangle from top-left to bottom-right, out of any chart. It should do nothing.

Are all these gestures correctly interpreted?
Are all them giving you errors?
Is the error message you are reporting the "TeeChart for Android Preview is gestopt" one we can see in the screenshots?

Re: (Android) historyPos out of range

Posted: Mon Dec 23, 2013 8:18 am
by 16967658
Hello

You are right about the pictures.
The gesture of the picture happend when i press one finger against the screen.
The error message is indeed the historypos out of range error.

Sorry for the confusion

Re: (Android) historyPos out of range

Posted: Mon Dec 23, 2013 8:25 am
by 16967658
edit:
Even when the zoom function is disabled it will still give the error.
I get the same error at the pie chart.

Re: (Android) historyPos out of range

Posted: Tue Dec 31, 2013 11:14 am
by 16967658
I think i have solved the problem.
I think that the problem has to do with multitouch and that your trying to call a pointer that isnt there.
This is probably an device specific problem.


Anyway the following code will propably solve the problem:

Code: Select all

if (event.getPointerCount() >= 2)
{
	historypos = event.getX(1);
}
add this "if statement" to the code.

Sorry if im wrong about something as i dont have the source code.