 				ev.preventDefault()
 
 		Events.listen
-			type: @_click_type # ["touchstart", "touchend"] # ["mouseup", "click", "dblclick"]
+			type: Button.clickTypes # @_click_type # ["touchstart", "touchend"] # ["mouseup", "click", "dblclick"]
 			node: @DOM
 			call: (ev) =>
+				if ev.getType() != @_click_type
+					ev.stopPropagation()
+					return
 
 				# if ev.getType() != @_click_type
 				# 	# click type can be changed after

			click_type:
				default: "click" # "touchend"
				mandatory: true
				check: ["click", "mouseup", "dblclick", "touchstart", "touchend"]
			text:
				check: String
			tooltip:

			type: "hide"
			node: @DOM

	@clickTypes: ["click", "mouseup", "dblclick", "touchstart", "touchend"]


CUI.defaults.class.Button = CUI.Button

