Do not trigger canvasClicked event when release pan.

Introduce flag that tells if panning is ongoing.