Skip to content

Commit

Permalink
Provide event to onRelease(), phetsims/density-buoyancy-common#356
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Aug 27, 2024
1 parent c99e982 commit e4dd397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export { default as PDOMTree } from './accessibility/pdom/PDOMTree.js';
export { default as PDOMFuzzer } from './accessibility/pdom/PDOMFuzzer.js';

export type { default as TInputListener } from './input/TInputListener.js';
export type { SceneryListenerFunction, SupportedEventTypes } from './input/TInputListener.js';
export type { SceneryListenerFunction, SceneryNullableListenerFunction, SupportedEventTypes } from './input/TInputListener.js';
export { default as Pointer, Intent } from './input/Pointer.js';
export { default as Mouse } from './input/Mouse.js';
export { default as Touch } from './input/Touch.js';
Expand Down
1 change: 1 addition & 0 deletions js/input/TInputListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import { Hotkey, SceneryEvent } from '../imports.js';

export type SceneryListenerFunction<T extends Event = Event> = ( event: SceneryEvent<T> ) => void;
export type SceneryNullableListenerFunction<T extends Event = Event> = ( event: SceneryEvent<T> | null ) => void;

type TInputListener = {
interrupt?: () => void;
Expand Down

0 comments on commit e4dd397

Please sign in to comment.