enyojs/moonstone — pull request #1395 by DavidUM (2014-06-19 02:46:55+00:00)
Title: Bhv 10793 Resolve timing issue that can be occurred from sequential key input

Issue
-------
Sometime last key input is lost and there is not following panel transition after first panel move.
Just in some specific cases.

To reproduce it, press right first then press left with having a little gap.
More precisely when panel is moving to right, press left.
What is your expected? Yes. It should move to left.
However there is no more transition.

Cause
----
Currently queuedIndex is only get a value when setIndex() is executed.
If next key input is occurred after setIndex() is executed, this key input will be lost.

Fix
----
Move updating queuedIndex into spotlight handlers.