sciencemine / digital-signage

4 stars 0 forks source link

Working Stack-List Component #87

Closed Areid406 closed 7 years ago

Areid406 commented 7 years ago

stack-list component implementation

Correctly registers mouse hovers, clicks, and keyboard inputs. Overflow behaves appropriately when cycling through the either ends of a list. Can display in either a flex container or with X-Y coordinates via isFlex parameter. Clicks access the correct video elements from the DOM.

video-stack.js has been modified to fetch and load 2 video-player components at a time, the current video and the following video, to eliminate playback transition gaps.

video-player.js does not have a "urlObserver" parameter anymore, deemed unnecessary. video-player also had faulty logic with play and pause, creating race conditions where a play would interrupt a pause. Preload was removed from the video tag. "oncanplaythrough" parameter was changed to "oncanplay"

The model was updated to change X-Y coordinates from decimal percents to integer percents.

abstract-list.js was refactored to have Callbacks behave as functions rather than actions.

Eliminated "focus" parameter content-area.js, as the focus is handled in the keyboard controls mixin itself. This behavior is the same with the list components, the difference being that lists can have their focus parameters modified from the default value.

Created is-single-video.js & string-append.js helpers