This is a migrated thread and some comments may be shown as answers.

Chart element selection in IOS 6

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 09 Oct 2012, 04:05 PM
Hello,

I'm having an issue with charts when running my app on any IOS 6 device. When a user performs a "taphold" action (touching the screen and keeping the finger pressed for longer than a second) over an element, the element is highlighted in blue. Additionally, this action brings up the "copy/select/select all" context menu. I have attached some screenshots to demonstrate the problem.

This seems to occur for any type of element so it is not necessarily a dataviz issue, but in case anyone else has encountered this, I would like to know if it is possible to somehow disable this feature. My app has some functionality bound to the "taphold" jQuery mobile event when performed on a chart, and the selection of the chart or one of its elements, along with the context menu appearing, can be distracting and confusing for the user.

Thank you,
Alex

1 Answer, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 10 Oct 2012, 01:23 PM
I found a solution for this: setting this css attribute to the chart's container effectively prevents any highlighting
-webkit-user-select: none;

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Share this question
or