comparison src/dad.js @ 10:ad2f6525c4c5

minor fix
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 11 May 2023 13:07:00 -0600
parents eee8862be4c7
children 80ef70ca5860
comparison
equal deleted inserted replaced
9:eee8862be4c7 10:ad2f6525c4c5
133 document.addEventListener('mousemove',onMouseMove); 133 document.addEventListener('mousemove',onMouseMove);
134 document.addEventListener('mouseup',onMouseUp); 134 document.addEventListener('mouseup',onMouseUp);
135 } 135 }
136 136
137 function onTouchStart(event) { 137 function onTouchStart(event) {
138 event.preventDefault();
138 start(event); 139 start(event);
139 let touches = event.touches; 140 let touches = event.touches;
140 if( touches.length !== 1 ) 141 if( touches.length !== 1 )
141 return; 142 return;
142 let touch = touches[0]; 143 let touch = touches[0];