Adding Chrome, Safari and IE9 support
This commit is contained in:
@@ -24,6 +24,9 @@ core.UserAgent = {
|
||||
if (!core.Utils.isDefined())
|
||||
{
|
||||
this._isVMLSupported = navigator.appVersion.match(/MSIE (\d\.\d)/);
|
||||
if(this._isVMLSupported == null || parseInt(this._isVMLSupported[1])>=9){
|
||||
this._isVMLSupported = false;
|
||||
}
|
||||
}
|
||||
return this._isVMLSupported;
|
||||
},
|
||||
@@ -75,6 +78,11 @@ core.UserAgent = {
|
||||
subString: "Apple",
|
||||
identity: "Safari"
|
||||
},
|
||||
{
|
||||
string: navigator.vendor,
|
||||
subString: "Google Inc.",
|
||||
identity: "Chrome"
|
||||
},
|
||||
{
|
||||
prop: window.opera,
|
||||
identity: "Opera"
|
||||
|
@@ -101,6 +101,9 @@ core.Utils.getMousePosition = function(event)
|
||||
throw "Could not obtain mouse position";
|
||||
}
|
||||
}
|
||||
if(core.Utils.isDefined(event.$extended)){
|
||||
event = event.event;
|
||||
}
|
||||
if (typeof( event.pageX ) == 'number') {
|
||||
//most browsers
|
||||
xcoord = event.pageX;
|
||||
|
Reference in New Issue
Block a user