Skip to content

Commit

Permalink
change: Pointers will use graphics bounds by default (#2897)
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim authored Jan 27, 2024
1 parent 1332a07 commit a199d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Changed the default `ex.PointerComponent.useGraphicsBounds = true`, users expect this to just work by default.
- Changed a rough edge in the `ex.Material` API, if a material was created with a constructor it was lazily initialized. However this causes confusion because now the two ways of creating a material behave differently (the shader is not available immediately on the lazy version). Now `ex.Material` requires the GL graphics context to make sure it always works the same.


Expand Down
4 changes: 2 additions & 2 deletions src/engine/Input/PointerComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class PointerComponent extends Component {
public useColliderShape = true;
/**
* Use any existing Graphics component bounds for pointers. This is useful if you want the axis aligned
* bounds around the graphic to trigger pointer events. Default is `false`.
* bounds around the graphic to trigger pointer events. Default is `true`.
*/
public useGraphicsBounds = false;
public useGraphicsBounds = true;
}

0 comments on commit a199d59

Please sign in to comment.