Is there any way to get drag(panning) direction(left/right) in Plotly.js

How to capture drag(panning) position and direction(left/right) on the line graph in Plotly.js