I am trying to create random shaped polygons inside svg. I want to implement the functionality to drag the polygons within the svg. To do this, I want to capture double click and hold event, similar to how we drag icons on windows desktop etc. I tried with mousedown and mousemove event, but for the second click (before hold), mousedown is not captured. Any suggestions on how I can achieve this ? Continue reading...