mirror of
https://github.com/discourse/discourse.git
synced 2025-03-12 20:17:54 +08:00
33 lines
963 B
JavaScript
33 lines
963 B
JavaScript
![]() |
/*
|
||
|
Discourse is not interested in watching `mouseMove` or `touchMove` events on an Ember views,
|
||
|
so we remove them from the events the EventDispatcher watches for.
|
||
|
*/
|
||
|
Ember.EventDispatcher.reopen({
|
||
|
events: {
|
||
|
touchstart : 'touchStart',
|
||
|
touchend : 'touchEnd',
|
||
|
touchcancel : 'touchCancel',
|
||
|
keydown : 'keyDown',
|
||
|
keyup : 'keyUp',
|
||
|
keypress : 'keyPress',
|
||
|
mousedown : 'mouseDown',
|
||
|
mouseup : 'mouseUp',
|
||
|
contextmenu : 'contextMenu',
|
||
|
click : 'click',
|
||
|
dblclick : 'doubleClick',
|
||
|
focusin : 'focusIn',
|
||
|
focusout : 'focusOut',
|
||
|
mouseenter : 'mouseEnter',
|
||
|
mouseleave : 'mouseLeave',
|
||
|
submit : 'submit',
|
||
|
input : 'input',
|
||
|
change : 'change',
|
||
|
dragstart : 'dragStart',
|
||
|
drag : 'drag',
|
||
|
dragenter : 'dragEnter',
|
||
|
dragleave : 'dragLeave',
|
||
|
dragover : 'dragOver',
|
||
|
drop : 'drop',
|
||
|
dragend : 'dragEnd'
|
||
|
}
|
||
|
});
|