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

PopupMenu: 'IsModal' and 'CloseOnNonTargetedTap' options don't work correctly #2040

Closed
ivan2007 opened this issue May 3, 2018 · 4 comments
Closed
Assignees

Comments

@ivan2007
Copy link

ivan2007 commented May 3, 2018

Overview

'IsModal' and 'CloseOnNonTargetedTap' options of the 'PopupMenu' component don't work correctly

Expected Behavior

The options should work

Actual Behavior

The options don't work correctly in all the situations

Steps to reproduce

InputManagerTest scene
IsModal:
Click the modal Popup button and then click the cylinder on the left
CloseOnNonTargetedTap:
Click the cylinder on the left (only if you remove the option 'CloseOnTargetedTap' the example works correctly).

Unity Editor Version

2017.4.2f2

Mixed Reality Toolkit Release Version

2017.2.1.4

@psytgm
Copy link

psytgm commented Jun 27, 2018

The situation of triggering twice with one click also occurred when scene switched between each other.

@keveleigh
Copy link
Contributor

Ahh, so it looks like PopupMenu is only consuming OnInputDown and OnInputUp events, while the cylinder uses OnInputClicked. It doesn't make sense to me for PopupMenu to respond to those events over clicked (and it's responding identically to both, strangely). I'll put out an update and test these settings.

@keveleigh
Copy link
Contributor

I just opened #2358 with a potential fix. Please take a look and let me know if something still doesn't work as expected.

@ivan2007
Copy link
Author

ivan2007 commented Jul 3, 2018

Hi @keveleigh, I made some test with InputManagerTest scene:

  1. When you open the modal window you are still able to move the movable objects (I don't know if this is outside the scope of PopupMenu).
  2. The button actions of Shrink and Grow are set with reset.
  3. If you place a CheckBoxSet inside the Popup window (IsModal is true) you can't change the state of the check boxes. The modal input stack of InputManager stop the event only if it is marked with used (see HandleEvent).

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

No branches or pull requests

4 participants