mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Fix _mousewheel for firefox (resolve #240) (ver 2)
* remove _DOMMouseScroll * remove _mousewheel
This commit is contained in:
parent
8201fd09b8
commit
d366927519
12
src/Stage.js
12
src/Stage.js
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user