Remove jQuery and make touch/mouse events opt-in
·
727 commits
to master
since this release
This release has two potential breaking changes:
jQuery's been removed! This means that responders will now receive vanilla events, instead of jQuery events. For instance, using jQuery'sisImmediatePropagationStoppedwill no longer work:
responder: Ember.on(keyDown('KeyA'), function(event) {
event.isImmediatePropagationStopped();
})- Mouse/touch events are now opt-in. You'll have to specify them in your
config/environment.jsfile:
emberKeyboard: {
listeners: ['keyUp', 'keyDown', 'keyPress', 'click', 'mouseDown', 'mouseUp', 'touchStart', 'touchEnd']
}