First you need to mousedown, then mousemove to the first point (point A), then mouse up at the second point (point B).
I tried with mousedown, then mouse move point A, then mouse move point B, then mouse up but it did not work.
Hope this helps.
~~PEACE~~