Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jul 12, 2019
1 parent ca796e0 commit 809b431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/api-reference/controller.md
Expand Up @@ -93,10 +93,12 @@ Utility used by the event handlers, returns pointer position `[x, y]` from any e

Utility used by the event handlers, returns `true` if ctrl/alt/meta key is pressed during any event.

##### `isPointInBounds(pos)`
##### `isPointInBounds(pos, [event])`

Utility used by the event handlers, returns `true` if a pointer position `[x, y]` is inside the current view.

If `event` is provided, returns `false` if the event is already handled, and mark the event as handled if the point is in bounds. This can be used to make sure that certain events are only handled by one controller, when there are overlapping viewports.

##### `isDragging()`

Returns `true` if the user is dragging the view.
Expand Down
2 changes: 1 addition & 1 deletion test/apps/minimap/app.js
Expand Up @@ -71,7 +71,7 @@ export class App extends Component {
}

componentDidMount() {
// this._animate();
this._animate();
}

componentWillUnmount() {
Expand Down

0 comments on commit 809b431

Please sign in to comment.