Skip to content

Commit

Permalink
Add PressListenerIO and support validating synthetic elements, phetsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 19, 2020
1 parent 8f89231 commit b305e18
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions js/SliderIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import PropertyIO from '../../axon/js/PropertyIO.js';
import RangeIO from '../../dot/js/RangeIO.js';
import PressListenerIO from '../../scenery/js/listeners/PressListenerIO.js';
import NodeIO from '../../scenery/js/nodes/NodeIO.js';
import LinkedElementIO from '../../tandem/js/LinkedElementIO.js';
import BooleanIO from '../../tandem/js/types/BooleanIO.js';
Expand Down Expand Up @@ -50,14 +51,20 @@ SliderIO.api = {
enabledRangeProperty: {
phetioType: PropertyIO( RangeIO )
},

track: {
phetioType: NodeIO,
dragListener: {} // TODO: handle synthetic elements that link to sub-components, https://github.com/phetsims/phet-io/issues/1657
dragListener: {

// TODO: Make this be DragListenerIO, https://github.com/phetsims/phet-io/issues/1657
// TODO: right now PressListenerIO isn't doing anything! https://github.com/phetsims/phet-io/issues/1657
phetioType: PressListenerIO
}
},
thumb: {
phetioType: NodeIO,
dragListener: {}
dragListener: {
phetioType: PressListenerIO
}
},
valueProperty: {
phetioType: LinkedElementIO
Expand Down

0 comments on commit b305e18

Please sign in to comment.