enyojs/moonstone — pull request #1198 by aarontam (2014-03-17 16:53:42+00:00)
Title: BHV-2446: Check that focus has actually left the scroller before hiding scroll columns.

Issue
-------
When pressing a 5-way direction key inside a scroller (i.e. `moon.DataList`), the scroll columns will be hidden even if focus doesn't end up leaving the scroller.

Fix
----
When the `onSpotlightContainerLeave` event is handled, we check that the currently spotted control is not the same control that was spotted when leaving the container.

Notes
-------
Can someone check my logic here - the `onSpotlightContainerLeave` event on the originating container is sent after the next control is spotted, as `onSpotlightContainerLeave` is dispatched via the `onSpotlightFocused` event of that container. This should always occur after `onSpotlightFocus` has spotted the next control, but I wanted to make sure there weren't any potential timing issues.

This PR is related to a Spotlight PR: https://github.com/enyojs/spotlight/pull/125

Enyo-DCO-1.1-Signed-off-by: Aaron Tam