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

web: Re-enable context menu on mobile, with option to disable #5000

Conversation

danielhjacobs
Copy link
Contributor

@danielhjacobs danielhjacobs commented Aug 4, 2021

Fix #4980, while still keeping in mind the intention of #3967. Tested with the helicopter game (#1972). After a quick appearance of the menu, it is simple enough to click "Hide this menu", and then the game functions fine from then on.

Note: There is no way, currently, to re-enable the context menu after disabling it. The one way I could think of was appending a small div with an "Enable context menu" button above a corner of the ruffle player after disabling the context menu, but that would have potentially obscured controls or text or graphics. However, I still think this is better than hiding the context menu altogether on mobile devices, as it is useful (especially the full screen option) more often than not.

@danielhjacobs danielhjacobs force-pushed the make_mobile_context_menu_only_optionally_hidden branch from e27496d to 631e964 Compare August 4, 2021 16:31
@danielhjacobs danielhjacobs force-pushed the make_mobile_context_menu_only_optionally_hidden branch from 631e964 to a109ea5 Compare August 4, 2021 18:20
@danielhjacobs danielhjacobs changed the title Re-enable context menu on mobile, with option to disable web: Re-enable context menu on mobile, with option to disable Aug 4, 2021
web/packages/core/src/ruffle-player.ts Outdated Show resolved Hide resolved
web/packages/core/src/ruffle-player.ts Show resolved Hide resolved
web/packages/core/src/ruffle-player.ts Outdated Show resolved Hide resolved
@adrian17
Copy link
Collaborator

For the record, my words from discord:

I can imagine that for some groups of people (alternatively: some games) this can be a pain, if they will need to hide the menu every time
but IMO this is good enough, worst case can be rolled back if we get more complaints from the other side

@adrian17 adrian17 force-pushed the make_mobile_context_menu_only_optionally_hidden branch from ca68742 to 4cc1f6d Compare August 19, 2021 15:35
@adrian17 adrian17 force-pushed the make_mobile_context_menu_only_optionally_hidden branch from 4cc1f6d to 32aa3c4 Compare August 19, 2021 15:56
@adrian17 adrian17 merged commit 985a97d into ruffle-rs:master Aug 19, 2021
@danielhjacobs danielhjacobs deleted the make_mobile_context_menu_only_optionally_hidden branch August 19, 2021 20:23
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.

Full screen in a mobile device
2 participants