Skip to content

Instantly share code, notes, and snippets.

@steveruizok
Last active May 24, 2020 17:15
Show Gist options
  • Save steveruizok/aa491c142c60029b84fecd51822a9e00 to your computer and use it in GitHub Desktop.
Save steveruizok/aa491c142c60029b84fecd51822a9e00 to your computer and use it in GitHub Desktop.
Mobile Gallery
Mobile Gallery
Gallery Closed*
clicked image -> Gallery Open
Gallery Open
clicked-close -> Gallery Closed
Image View*
clicked prev -> Image View
clicked next -> Image View
clicked grid button -> Grid View
Zoomed-Out*
clicked zoom button -> Zoomed-In
pinched in -> Zoomed-In
swiped horizontal -> Zoomed-Out
swiped vertical -> Far Enough Swipe?
Zoomed-In
clicked zoom button -> Zoomed-Out
pinched out -> Zoomed-Out
Far Enough Swipe?
yes -> Gallery Closed
no -> Image View
Grid View
clicked image -> Image View
clicked grid button -> Image View
function render(model){
let current_state_name = model.active_states[0].name
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment