choojs / choojs/nanohtml

touch events not working

Open
#87 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
688
Forks
48
PR merge metrics
No merged PRs in 30d

Description

None of the following touch events are firing at the moment, when set in bel:

`ontouchstart`
`ontouchmove`
`ontouchend`
`ontouchcancel`

Steps to reproduce (extending the minimal example):

```javascript
// list.js
var bel = require('bel');
var log = x => () => console.log(x)

module.exports = function (items) {
return bel`


    ${items.map(function (item) {
    return bel`
  • ${item}
  • `
    })}
`
}

// app.js
var createList = require('./list.js')
var list = createList([
'grizzly',
'polar',
'brown'
])
document.body.appendChild(list)
```

The pointer events are successfully called upon click, but not the touch ones.

What is weirder is the fact that (in console):

```javascript
document.querySelector('ul').ontouchstart;
// () => console.log(x)
```
returns a valid callback, but this callback - so it is indeed registered, just never fires.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.