Fix F.F does not trigger resize nm column onmousedown, but after mouseup

This commit is contained in:
Hadi Nategh 2014-08-19 13:58:35 +00:00
parent 162c08a457
commit a512c04183

View File

@ -41,9 +41,17 @@
if (overlay == null || helper == null) if (overlay == null || helper == null)
{ {
// Prevent text selection // Prevent text selection
// FireFox handles highlight prevention (text selection) different than other browsers
if (typeof _elem[0].style.MozUserSelect !="undefined")
{
_elem[0].style.MozUserSelect = "none";
}
else
{
_elem[0].onselectstart = function() { _elem[0].onselectstart = function() {
return false; return false;
}; };
}
// Reset the "didResize" flag // Reset the "didResize" flag
didResize = false; didResize = false;