-
Notifications
You must be signed in to change notification settings - Fork 2
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
Alternative Input #86
Comments
We have been working on adding KeyboardDragListener to the BodyNodes, and it is going well. We found one spot where KeyboardDragListener doesn't have the same API as DragListener, called |
KeyboardDragListeners were added to MeasuringTapeNode in phetsims/scenery-phet#798. It went pretty well and wasn't too challenging! Let's keep working on this next week @AgustinVallejo. |
|
Subject: [PATCH] mark Poolable as deprecated, https://github.com/phetsims/phet-core/issues/103
---
Index: js/common/view/InteractiveNumberDisplay.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/common/view/InteractiveNumberDisplay.ts b/js/common/view/InteractiveNumberDisplay.ts
--- a/js/common/view/InteractiveNumberDisplay.ts (revision b640e76a15983d4338224dbd89e620f875b60b6b)
+++ b/js/common/view/InteractiveNumberDisplay.ts (date 1678208831489)
@@ -80,7 +80,9 @@
], ( isUserControlled, isKeypadActive, backgroundColor ) => {
return isUserControlled || isKeypadActive ? backgroundColor.colorUtilsBrighter( 0.7 ) : Color.WHITE;
} ),
- backgroundStroke: Color.BLACK
+ backgroundStroke: Color.BLACK,
+
+ tagName: 'button'
}, providedOptions );
super( property, range, options ); |
RE: f6f45eb Sorry if there will be a merge conflict @AgustinVallejo, but I needed it to make progress on phetsims/scenery-phet#790 and get a review on master. |
|
|
Pending with this:
|
Working on this now. |
Subject: [PATCH] Compound key directions instead of favoring left/up, see https://github.com/phetsims/scenery/issues/1549
---
Index: js/view/DraggableVectorNode.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/view/DraggableVectorNode.ts b/js/view/DraggableVectorNode.ts
--- a/js/view/DraggableVectorNode.ts (revision a5a58d9cb76bb2e0a92dcc553ecfe2da797e2c9b)
+++ b/js/view/DraggableVectorNode.ts (date 1679508929265)
@@ -138,6 +138,8 @@
}
} );
+ body.userControlledVelocityProperty.debug( 'hello' );
+
// Add the drag handler
const start = () => {
body.userControlledVelocityProperty.value = true;
@@ -152,8 +154,13 @@
transform: transformProperty,
positionProperty: vectorPositionProperty,
canStartPress: () => !body.userControlledVelocityProperty.value,
- start: start,
- end: end
+ start: () => {
+ keyboardDragListener.interrupt();
+ start();
+ },
+ end: end,
+
+ // blur should also reset userControlledVelocityProperty
} );
grabArea.addInputListener( dragListener );
// move behind the geometry created by the superclass
@@ -165,8 +172,13 @@
transform: transformProperty,
dragVelocity: 450,
shiftDragVelocity: 100,
- start: start,
- end: end
+ start: () => {
+ dragListener.interrupt();
+ start();
+ },
+ end: end,
+
+ // blur should also reset userControlledVelocityProperty
} );
this.addInputListener( keyboardDragListener );
|
After a brief talk with @jessegreenberg about the above patch. It seems best to commit the interrupts. The general solution seems incredibly challenging to make sure that all types of drag listeners know about all types of pointer to know how to interface between them. I'll commit shortly. |
I see no usages of |
More good work done here. In my mind, we are fast approaching diminishing returns as it pertains to the publication of MSS, but each time @samreid and I have spent time here, we have found really good questions that warrant more thought. Ideally here would be what would happen next in this issue. I think that anyone could review if they had an open and inquiring mind about this:
|
I'm not planning further work on this issue at the moment, so will self-unassign and assign members from the subteam for this sim. Please invite me back if needed. |
Yes, and me as well. Please let me know if you want help or consulting on the above points. |
@AgustinVallejo and I reviewed the checklist in #86 (comment). @AgustinVallejo will check off the items he can, and we will ask @jonathanolson to consult on the remaining items. |
04/07: With @arouinfar and @jonathanolson we considered that the way accessibleNames are added to the sim are not a main priority right now, but it could be looked into in the future. For now, what we have is sufficient for the level of description the sim has. |
2023-02-27 (AV and MK):
The text was updated successfully, but these errors were encountered: