I am using the following answer to solve my problem, however, it always registers either two clicks or two drags instead of just one. What could be the problem for that?
https://stackoverflow.com/a/31080629/5632752
The div that I am using the .draggable() function on looks like this:
<div id="draggable"><div>Hello World</div></div>