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