Fix _mousewheel for firefox (resolve #240) (ver 2)

* remove _DOMMouseScroll
 * remove _mousewheel
This commit is contained in:
pavel pimenov 2017-07-24 14:44:41 +03:00
parent 8201fd09b8
commit d366927519

View File

@ -19,8 +19,6 @@
TAP = 'tap',
DBL_TAP = 'dbltap',
TOUCHMOVE = 'touchmove',
DOMMOUSESCROLL = 'DOMMouseScroll',
MOUSEWHEEL = 'mousewheel',
WHEEL = 'wheel',
CONTENT_MOUSEOUT = 'contentMouseout',
CONTENT_MOUSEOVER = 'contentMouseover',
@ -52,8 +50,6 @@
TOUCHMOVE,
TOUCHEND,
MOUSEOVER,
DOMMOUSESCROLL,
MOUSEWHEEL,
WHEEL,
CONTEXTMENU
],
@ -680,10 +676,7 @@
}
}
},
_DOMMouseScroll: function(evt) {
this._mousewheel(evt);
},
_mousewheel: function(evt) {
_wheel: function(evt) {
this._setPointerPosition(evt);
var shape = this.getIntersection(this.getPointerPosition());
@ -692,9 +685,6 @@
}
this._fire(CONTENT_WHEEL, { evt: evt });
},
_wheel: function(evt) {
this._mousewheel(evt);
},
_setPointerPosition: function(evt) {
var contentPosition = this._getContentPosition(), x = null, y = null;
evt = evt ? evt : window.event;