pull up/down implementation of touch event.