Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dbaupp
on March 17, 2014
|
parent
|
context
|
favorite
| on:
2048 in 4D
I couldn't work out how to implement the extra 2 movement dimensions on a phone. Does JS support detecting 2 finger swipes (or something similar) in a sane way?
matthewmacleod
on March 17, 2014
|
next
[–]
You can certainly grab the number of touches in an event - two-finger swipe might be interesting. MDN has quite a few examples:
https://developer.mozilla.org/en-US/docs/Web/Guide/Events/To...
dbaupp
on March 17, 2014
|
parent
|
next
[–]
Very cool, thanks; I've added two-finger swipe for the extra two dimensions.
truebosko
on March 17, 2014
|
prev
|
next
[–]
You may want to check out Hammer.js (
http://eightmedia.github.io/hammer.js/
)
iLoch
on March 17, 2014
|
prev
[–]
You could separate the screen. Top half/bottom half.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: