프로젝트
GitHub에서 보기
benhowdle89/touche
소개
터치스크린 UI의 클릭 이벤트를 손쉽게 터치 이벤트로 다시 매핑
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTouche.js
Effortlessly re-map click events to touch events on touchscreen UIs
- Removes the 300ms delay (after the user lifts their finger), applied by all touchscreens devices and immediately invokes your click handlers.
- Takes your click events applied with jQuery and silently re-maps them to the "touchend" event for devices that support touch.
- If you're not using jQuery, then Touche exposes a method "on" for your use like so:
Usage
<!-- somewhere before the rest of your JavaScript code -->
<script type="text/javascript" src="/path/to/touche.js"></script>
Examples
// applying a click event to one element
Touche(document.querySelector('#myButton')).on('click', handleClick);
// or to multiple at once
Touche(document.querySelectorAll('.myButtons')).on('click', handleClicks);
// or with jQuery
$('.myButtons').on('click', handleClicks);
관련 프로젝트 살펴보기
불러오는 중…