Consider this code:
DynamicModule[{cnt = 0}, Dynamic@ EventHandler[Dynamic[cnt], "MouseDown" :> (While[CurrentValue["MouseButtons"] == {1}, cnt++])]]
I want this code to continuously displays the value of "cnt", as it changes, on mousedown. Currently it displays only the final value when the mousebutton is released. Could somebody please tell me.