Skip to content

Commit

Permalink
updated inspector pointer event as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pravusjif committed Oct 30, 2024
1 parent a4ccbdf commit 8e7d626
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ describe('InputUtils', () => {
button: InputAction.IA_ANY,
hoverText: 'Interact',
maxDistance: 10,
showFeedback: true
showFeedback: true,
showHighlight: true
}
}
expect(result).toEqual(expected)
Expand All @@ -36,7 +37,8 @@ describe('InputUtils', () => {
button: InputAction.IA_PRIMARY,
hoverText: 'Custom Interaction',
maxDistance: 15,
showFeedback: false
showFeedback: false,
showHighlight: false
}
})
const expected = {
Expand All @@ -45,7 +47,8 @@ describe('InputUtils', () => {
button: InputAction.IA_PRIMARY,
hoverText: 'Custom Interaction',
maxDistance: 15,
showFeedback: false
showFeedback: false,
showHighlight: false
}
}
expect(result).toEqual(expected)
Expand All @@ -68,7 +71,8 @@ describe('InputUtils', () => {
button: InputAction.IA_ANY,
hoverText: 'Interact',
maxDistance: 10,
showFeedback: true
showFeedback: true,
showHighlight: true
}
}
expect(DEFAULTS).toEqual(expected)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function getDefaultPointerEvent(
hoverText: 'Interact',
maxDistance: 10,
showFeedback: true,
showHighlight: true,
...def?.eventInfo
}
}
Expand Down

0 comments on commit 8e7d626

Please sign in to comment.