touchend1 touchmove로 touchstart 제어하기 스크롤(touchmove)과 클릭(touchstart)의 구분을 할 때 유용한 코드 특히 상세검색 모바일 작업 시 꼭 필요. var touchmove; $('#on').find('li').on({//터치대상 touchend:function(){ if(touchmove != true){ //touch시 액션 } }, touchmove:function(){ touchmove = true }, touchstart:function(){ touchmove = false } }) 2020. 12. 3. 이전 1 다음