mirror of
https://gitee.com/antv/g6.git
synced 2024-12-10 07:38:18 +08:00
Merge branch 'master' of github.com:antvis/g6
This commit is contained in:
commit
aa67104a75
@ -21,6 +21,7 @@ const EVENT = {
|
|||||||
DROP: 'drop',
|
DROP: 'drop',
|
||||||
CONTEXTMENU: 'contextmenu',
|
CONTEXTMENU: 'contextmenu',
|
||||||
MOUSEWHEEL: 'mousewheel',
|
MOUSEWHEEL: 'mousewheel',
|
||||||
|
WHEEL: 'wheel',
|
||||||
KEYDOWN: 'keydown',
|
KEYDOWN: 'keydown',
|
||||||
KEYUP: 'keyup',
|
KEYUP: 'keyup',
|
||||||
KEYPRESS: 'keypress'
|
KEYPRESS: 'keypress'
|
||||||
@ -29,7 +30,7 @@ const SHAKE_TOLERANCE = 9; // use to tolerate click shake prevent drag shake. Th
|
|||||||
|
|
||||||
// native dom events list:
|
// native dom events list:
|
||||||
const MouseEventTypes = [ EVENT.DBLCLICK, EVENT.MOUSEDOWN, EVENT.MOUSEUP, EVENT.MOUSEENTER, EVENT.MOUSELEAVE, EVENT.MOUSEMOVE,
|
const MouseEventTypes = [ EVENT.DBLCLICK, EVENT.MOUSEDOWN, EVENT.MOUSEUP, EVENT.MOUSEENTER, EVENT.MOUSELEAVE, EVENT.MOUSEMOVE,
|
||||||
EVENT.CONTEXTMENU, EVENT.MOUSEWHEEL ];
|
EVENT.CONTEXTMENU, EVENT.MOUSEWHEEL, EVENT.WHEEL ];
|
||||||
const KeyboardEventTypes = [ EVENT.KEYDOWN, EVENT.KEYUP, EVENT.KEYPRESS ];
|
const KeyboardEventTypes = [ EVENT.KEYDOWN, EVENT.KEYUP, EVENT.KEYPRESS ];
|
||||||
const CANVAS = 'canvas:';
|
const CANVAS = 'canvas:';
|
||||||
function parentNodeHasTag(n, t) {
|
function parentNodeHasTag(n, t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user