fixed compatibility touch and mouse events on widget