Hi everyone,
When I enabled the Clamp function for the Chart, on mobile web browser, I can swift by one finger to zoom on x axis. But the deal is now I want to perform this action only when using two finger.
What I did by far was detect two finger using ontouchstart event, and set the state to toggle the clamp function as below:
`<ChartCanvas styles={{overflow: 'hidden'}} ref={node => {this.canvas=node;}} width={width} height={mainChartHeight} minPointsPerPxThreshold={0.02}
...
clamp={twoFingerTouch}
`
As a result, still cannot use clamp function for zooming when move the two finger to the left after state has been updated successfully. Does anyone have idea about that ? Pls help
Hi everyone, When I enabled the Clamp function for the Chart, on mobile web browser, I can swift by one finger to zoom on x axis. But the deal is now I want to perform this action only when using two finger.
What I did by far was detect two finger using ontouchstart event, and set the state to toggle the clamp function as below: `<ChartCanvas styles={{overflow: 'hidden'}} ref={node => {this.canvas=node;}} width={width} height={mainChartHeight} minPointsPerPxThreshold={0.02} ... clamp={twoFingerTouch}
As a result, still cannot use clamp function for zooming when move the two finger to the left after state has been updated successfully. Does anyone have idea about that ? Pls help