Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
486 stars 113 forks source link

Keyboard navigation is inverted #89

Open Zuurkern opened 8 years ago

Zuurkern commented 8 years ago

I haven't tried out your code yet but I noticed that on your demo page, the keyboard navigation is inverted.

To go to the next screen, I have to press keyboard arrow left, and vice versa.

KarlPiper commented 8 years ago

@Zuurkern I think it's just one of those "natural scroll direction" things, you can easily change which keys are mapped to which direction. Could even swap for WASD controls. keycodes = { 39: "left", 38: "up", 37: "right", 40: "down" },

Zuurkern commented 8 years ago

Oh ok cool, thanks for pointing that out.

The default just seems counterintuitive to me. The next pane is on the right and even the buttons (eg Getting started >>) have arrows pointing the correct way. I know that when you swipe, you pull the current pane to the left but for buttons, this doesn't seem logical:

<- next | back ->

Just imagine if your browser buttons were like this too.

Just figured I'd leave this here. I for one was mashing the keyboard_right button at least five times and assumed the keyboard navigation was broken before I even tried the left one.