debugged mouse and touch event binding