рони, подскажите, пожалуйста, почему событие "touchstart" срабатывает, а "touchend" никак не могу поймать...
var hand = document.getElementsByTagName('body')[0]; hand.addEventListener('touchstart', turn_start, false); hand.addEventListener('touchend', turn_page, false); Функция: function turn_page(event) { touch_stop = event.touches[0].pageX; document.getElementById('tmp').innerHTML='start:st op='+touch_position+':'+touch_stop; } Спасибо! |
Цитата:
|
WadimS,
Цитата:
Цитата:
function turn_page(event) { touch_stop = event.changedTouches[0].pageX; document.getElementById('tmp').innerHTML='start:st op='+':'+touch_stop; } |
рони, благодарю!
|
Часовой пояс GMT +3, время: 11:17. |