Skip to content

Commit

Permalink
Merge pull request #1030 from OpenGeoscience/event-data-actionwheel
Browse files Browse the repository at this point in the history
Expose the original event data in the action wheel event.
  • Loading branch information
manthey authored Sep 19, 2019
2 parents 1dea606 + 650af7c commit 8ce77ce
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 8ce77ce

Please sign in to comment.