Closed Nancy-Salpepi closed 1 year ago
Looking into this now, here is one way to do it (but there are many)
startDrag
and endDrag
options to both FrictionKeyboardDragListener and FrictionDragListener.userInteractionProperty
to BookNode.startDrag
and endDrag
for the FrictionKeyboardDragListener
and FrictionDragListener
of BookNode such that on start and end, userInteractionProperty
is set to true/false.BookNode.userInteractionProperty
to set the other BookNode inputEnabled: false
when one book receives input.@zepumph (responsible dev) does that strategy sound OK to you?
Alternatively, DragListener has a isUserControlledProperty
which could replace the first three bullet points above and the proposed userInteractionProperty
. There is no equivalent for KeyboardDragListener, we could add one or not.
Controversial thought here:
I don't see the big deal. You are using both at the same time, you will have them fighting. If you want that behavior to stop, then stop using both at the same time. In my experience testing locally, there is no inconsistent state that occurs after a multi touch interaction like this, you can just use it normally afterwards.
I perhaps don't know PhET's general policy about something like this, but since it doesn't cause usability concerns, and has never blocked publication of previous versions. I would prefer to mark this as a wontfix. @jessegreenberg's solutions above seem solid if we want to add this to the RC though.
@arouinfar what do you think?
That is a good thought, and I agree. This behavior is in the published version as well, it is not new.
@zepumph I agree. It looks the sim is reasonably well-behaved during the multitouch event, and then goes back to normal. This isn't causing any real UX problems, so I think we can pass, but thanks @jessegreenberg for providing a solution if one is needed in the future.
Great, thanks everyone.
Test device iPad 9th generation
Operating System 16.3
Browser Safari
Problem description For https://github.com/phetsims/qa/issues/886, with multitouch it is possible to drag the Chemistry Book and Zoomed-in Chemistry book at the same time.
Steps to reproduce
Visuals
https://user-images.githubusercontent.com/87318828/216349176-825d87ac-a909-4f35-bccb-095b72de74bd.mov