Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 15043

JAVASCRIPT Advice on how to handle touchscreen input - left/right swiping.

$
0
0
Hey, I'm making a speed dial but 18 dials isn't enough, so I'm trying to get advice on how to handle touch input since this will be used on my phone. I want to scroll left/right like pages but I also want them to 'snap' into place so they are aligned correctly and maybe even make it do a slight animation just to make it a little bit nicer.

If worse comes to worse I can also just have a transparent button that can toggle the divs but was hoping for a more authentic way to handle it so it'll work on swipes.

This is the one I'm working on, at the moment, you can basically scroll left or right, but it doesn't snap and doesn't have any sliding animation, but sometimes when you flick it, it doesn't go all the way over, like it'll be half and half.

Code:

http://ejparker.com/test/index.html

Viewing all articles
Browse latest Browse all 15043

Trending Articles