سؤال

Is there way to only get plotSymbolWasSelectedAtRecordIndex on touchup on iOS?

I've got panning turned on and trying to pan where there are plot symbols leads to a really bad experience because plotSymbolWasSelectedAtRecordIndex is being called on touchesBegan so the touchesMoved or something is cancelled.

Any ideas?

هل كانت مفيدة؟

المحلول

We've been working on the event handling recently on the release-2.0 branch. We added touch down and touch up events for each item that has a "wasSelected" delegate method (plots, axes, and legends). The "wasSelected" methods now fire only if the down and up events occur on the same element. You can still scroll as long as the delegate does not implement the touch down methods.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top