Skip to content

Commit

Permalink
Expose the original event data in the action wheel event.
Browse files Browse the repository at this point in the history
This was intended, but since the `event` key was used, and that is
populated with the event name, it wasn't actually exposed.
  • Loading branch information
manthey committed Sep 19, 2019
1 parent c3ff8fe commit 650af7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

### Bug Fixes
- Mouse wheel events didn't recompute gcs coordinates, so a wheel event without a previous move event coult list the wrong location (#1027)
- Original event data was not included with actionwheel events (#1030)

## Version 0.19.6

Expand Down
2 changes: 1 addition & 1 deletion src/mapInteractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ var mapInteractor = function (args) {
break;
}
m_this.map().geoTrigger(geo_event.actionwheel, {
state: m_this.state(), mouse: m_this.mouse(), event: evt});
state: m_this.state(), mouse: m_this.mouse(), eventData: evt});
}

// reset the queue
Expand Down

0 comments on commit 650af7c

Please sign in to comment.