Форк Rambox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
1.0 KiB

//<feature legacyBrowser>
Ext.define('Ext.overrides.event.publisher.Gesture', {
override: 'Ext.event.publisher.Gesture'
}, function() {
if (Ext.isIE9m) {
this.override({
updateTouches: function(e, isEnd) {
var browserEvent = e.browserEvent,
xy = e.getXY();
// I don't always set pageX and pageY on the event object, but when I do
// it's because the Gesture publisher expects an event object that has them.
browserEvent.pageX = xy[0];
browserEvent.pageY = xy[1];
this.callParent([e, isEnd]);
},
doDelegatedEvent: function(e) {
// Workaround IE's "Member not found" errors when accessing an event
// object asynchronously. Needed for all gesture handlers because
// they use requestAnimationFrame (see enableIEAsync for more details)
this.callParent([Ext.event.Event.enableIEAsync(e)]);
}
});
}
});
//</feature>