Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
Fixed #501: avoid "originalEvent" is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengyuan Chen committed Nov 3, 2015
1 parent 88ca6d9 commit 410c0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

wheel: function (event) {
var originalEvent = event.originalEvent;
var e = originalEvent;
var e = originalEvent || event;
var ratio = num(this.options.wheelZoomRatio) || 0.1;
var delta = 1;

Expand Down

0 comments on commit 410c0c5

Please sign in to comment.