abbr-touch
A library to make element title attributes touch accessible.
Installing
bower install --save abbr-touch
npm install --save abbr-touch
Including
<script src="bower_components/abbr-touch/abbr-touch.js"></script>
<script src="bower_components/abbr-touch/abbr-touch.js"></script>
Usage
See demo.html for a deeper example.
abbrTouch();
abbrTouch(document.querySelector('#some-element'));
abbrTouch(document.querySelector('#some-element'), myHandler);
function myHandler(target, title, touchX, touchY) {
console.log(target);
console.log(title);
console.log(touchX);
console.log(touchY);
}
See also