ran npm run tdd
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
module.exports = onUserInputChange = callback => {
|
||||
const onUserInputChange = callback => {
|
||||
let type = 'mouse',
|
||||
lastTime = 0;
|
||||
const mousemoveHandler = () => {
|
||||
@ -11,4 +11,5 @@ document.addEventListener('touchstart', () => {
|
||||
if (type === 'touch') return;
|
||||
(type = 'touch'), callback(type), document.addEventListener('mousemove', mousemoveHandler);
|
||||
});
|
||||
};
|
||||
};
|
||||
module.exports = onUserInputChange
|
||||
Reference in New Issue
Block a user