Skip to content

Instantly share code, notes, and snippets.

// Вешаем на прикосновение функцию handleTouchStart
document.addEventListener('touchstart', handleTouchStart, false);
// А на движение пальцем по экрану - handleTouchMove
document.addEventListener('touchmove', handleTouchMove, false);
var xDown = null;
var yDown = null;
function handleTouchStart(evt) {
xDown = evt.touches[0].clientX;
@sdalu
sdalu / lcd_hat_rpi.md
Last active August 7, 2022 13:33
LCD display HAT for Raspberry Pi