ChartDirector 6.0 (Ruby Edition)

JsChartViewer.setDisableTouch


Usage

setDisableTouch(b)

Description

Specifies whether to disable touch support for zooming and scrolling.

By default, if JsChartViewer.setMouseUsage is used to set the mouse for zooming and scrolling usage, certain touch gestures will automatically be enabled for the same actions. For example, if mouse drag scrolling of the chart is enabled, using touch swipe can also scroll the chart. This will disable the default usage of the touch gesture. For example, the browser by default uses touch swipe to scroll the web page. This will be disabled if touch swipe is used to scroll the chart.

The setDisableTouch method can be used to disable touch support for zooming and scrolling, so as to restore the default touch gesture behaviour.

Arguments

ArgumentDefaultDescription
b(Mandatory)True to disable touch support for zooming and scrolling, false otherwise.

Return Value

None