Different actions for click and drag

How can I set different actions for click and drag or just click? For example I have a map with clickable objects. When clicked on object some action happens, but when a user clicks and drags the panning starts not the click action of object.