microsoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemail
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.
28 lines
1.0 KiB
28 lines
1.0 KiB
9 years ago
|
//<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>
|