Use representative wheel delta values in the tests

This commit is contained in:
Tim Schaub committed 2016-11-12 12:07:57 -07:00
1 parent e6f8288d36
commit 489d37d384
2 files changed
+22 -18

No files matched your search

-1
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;