I am trying to implement a linegraph with movable points in Javascript using Highcharts. Using latest Chrome everything just works as expected. However, when I look at it on my iPhone or iPad, the movable points wouldn t move at all.
这是因为在移动式Safari系统中鼠标事件处理方式不同。
mousedown
成为 touchstart
, mousemove
成为 touchmove
等。
我试图绘制所有触摸活动图, 以达到适当的移动等效, 但没有多少成功。 点可以拖动, 但视图没有更新...
铬工作版本:http://jsfiddle.net/MTyzv/3/
移动搜索版本:“http://jsfiddle.net/MTyzv/7”, rel=“nofollow”>http://jsfiddle.net/MTyzv/7/
<强> UPDATE 强>
Ok I narrowed the problem down a bit... It seems like all the touch events are handled correctly, but the points jump to 0.0 as soon as they are moved. In addition to that, the graph is not "redrawn" after the initial touch. See the updated version of this Fiddle http://jsfiddle.net/MTyzv/11/