andredumas / techan.js

A visual, technical analysis and charting (Candlestick, OHLC, indicators) library built on D3.
http://techanjs.org/
MIT License
2.4k stars 535 forks source link

Touchmove event for crosshair #221

Open matricore opened 6 years ago

matricore commented 6 years ago

I needed support for "touchmove" event on crosshair like mousemove. So I've added it directly with one line as below:

Find below on techan.js.

.on('mousemove', mousemoveRefresh(group, pathVerticalSelection, pathHorizontalSelection,
          xAnnotationSelection, yAnnotationSelection)
)

Add right after it

.on('touchmove', mousemoveRefresh(group, pathVerticalSelection, pathHorizontalSelection,
          xAnnotationSelection, yAnnotationSelection)
)
caos30 commented 6 years ago

Thanks!

shkim commented 3 years ago

it seems like not working from the second touchmove.