(Android) historyPos out of range

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
FrankLiemar
Newbie
Newbie
Posts: 15
Joined: Wed Oct 30, 2013 12:00 am

Re: (Android) historyPos out of range

Post by FrankLiemar » Fri Dec 20, 2013 11:39 am

Here is the same motion but outside the chart (no error).
Attachments
HistoryPosOutOfRange5.png
HistoryPosOutOfRange5.png (31.65 KiB) Viewed 11569 times

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: (Android) historyPos out of range

Post by Yeray » Fri Dec 20, 2013 3:56 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

FrankLiemar
Newbie
Newbie
Posts: 15
Joined: Wed Oct 30, 2013 12:00 am

Re: (Android) historyPos out of range

Post by FrankLiemar » Mon Dec 23, 2013 8:18 am

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

FrankLiemar
Newbie
Newbie
Posts: 15
Joined: Wed Oct 30, 2013 12:00 am

Re: (Android) historyPos out of range

Post by FrankLiemar » Mon Dec 23, 2013 8:25 am

edit:
Even when the zoom function is disabled it will still give the error.
I get the same error at the pie chart.

FrankLiemar
Newbie
Newbie
Posts: 15
Joined: Wed Oct 30, 2013 12:00 am

Re: (Android) historyPos out of range

Post by FrankLiemar » Tue Dec 31, 2013 11:14 am

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.

Post Reply