Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Game Lab D-Pad and Space Button (for mobile devices) #22170

Merged
merged 2 commits into from
May 4, 2018

Conversation

cpirich
Copy link
Contributor

@cpirich cpirich commented May 2, 2018

  • Added new D-Pad visuals and a new Space Button per spec
  • Make them appear only in the mobile share scenario (and when the level has showDPad, which is typically true)
  • Modify onMouseUp to make it multi-touch friendly - at least on devices that send touchend events. If we see the event.touches, we ensure that there are no other active touches before proceeding to reset the D-Pad and soft buttons.

simulator screen shot - iphone 8 - 2018-05-02 at 16 06 58

@cpirich cpirich requested a review from islemaster May 2, 2018 23:22
@islemaster
Copy link
Contributor

@poorvasingal to check out the screenshot!

@poorvasingal
Copy link
Contributor

This is awesome! Should we first ship this behind a flag so we can test first?

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cpirich cpirich merged commit 1dd6f69 into staging May 4, 2018
@cpirich cpirich deleted the new_gamelab_dpad branch May 4, 2018 16:21
@@ -1605,6 +1684,7 @@ a.WireframeButtons_active, div.WireframeButtons_active {

.legacy-share-view {
overflow: hidden;
position: fixed;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted this change because of a regression in the share view layout. This position: fixed style seems to be the problem - when I disable it, the layout snaps back into position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants