Use representative wheel delta values in the tests

This commit is contained in:
Tim Schaub
2016-11-12 12:05:24 -07:00
parent e6f8288d36
commit 489d37d384
2 changed files with 22 additions and 18 deletions

View File

@@ -116,7 +116,6 @@ ol.interaction.MouseWheelZoom.handleEvent = function(mapBrowserEvent) {
// Delta normalisation inspired by
// https://github.com/mapbox/mapbox-gl-js/blob/001c7b9/js/ui/handler/scroll_zoom.js
//TODO There's more good stuff in there for inspiration to improve this interaction.
var delta;
if (mapBrowserEvent.type == ol.events.EventType.WHEEL) {
delta = wheelEvent.deltaY;