added helper for touch&mouse events