neomjs / neo

The application worker driven frontend framework
https://neomjs.com
MIT License
2.89k stars 162 forks source link

Touch events concept #505

Closed tobiu closed 1 month ago

tobiu commented 4 years ago

To be fair, I did not look at native touch-related browser events for many (5?) years.

Was thinking that at this point there will be events like swipe or rotate out of the box.

This assumption was naive, I did not even find proposals.

Took a quick look at:

https://github.com/hammerjs/hammer.js

And created a ticket, since (again) invalid import statements.

https://github.com/hammerjs/hammer.js/issues/1249

From the concept we do need something similar for neo. I would prefer to use global (doc.body) events and delegate them through the cmp-tree.

we can just pass the basic touch events from main to the app worker and add a manager class there which can map the touch based input into events which do make sense.

thoughts?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.