js/foundation/eventmanager/eventmanager.js in rsence-2.1.10 vs js/foundation/eventmanager/eventmanager.js in rsence-2.1.11
- old
+ new
@@ -139,11 +139,11 @@
},
/** Starts event listening.
**/
start: function() {
- var _globalEventTargetElement = BROWSER_TYPE.ie?document:window,
+ var _globalEventTargetElement = (BROWSER_TYPE.ie && !BROWSER_TYPE.ie9)?document:window,
_this = EVENT;
// _eventMap = [
Event.observe( _globalEventTargetElement, 'mousemove', _this.mouseMove );
Event.observe( _globalEventTargetElement, 'mouseup', _this.mouseUp );
Event.observe( _globalEventTargetElement, 'mousedown', _this.mouseDown );
@@ -219,11 +219,11 @@
_elemId = _ctrl.elemId,
_elem = ELEM.get(_elemId),
_this = EVENT,
_propIn,
_init = ( _this.listeners[_elemId] === undefined || _this.listeners[_elemId] === false );
- if (BROWSER_TYPE.ie) {
+ if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie9) {
_elem.setAttribute('ctrl', _ctrl);
}
else {
_elem.ctrl = _ctrl;
}
@@ -692,10 +692,10 @@
_clickElementIds = [];
_this._modifiers(e);
if (_isLeftButton === undefined) {
_isLeftButton = Event.isLeftClick(e);
}
- if (BROWSER_TYPE.ie) {
+ if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie9) {
_isLeftButton = true; // IE only supports click on left button
}
// Prevent right-click event from triggering click.
// Only firefox seems to fire the click-event with the
// right mouse button, so this prevents it from happening