Plotly js detect drag on 3d plot

Hi,
I was stuck with the issue mentioned here:

Just could not find an answer to it as I searched online. Any help would be appreciated.
Thanks.