debug touch event for painting fixed