Fixed cancelEvent
This commit is contained in:
parent
62d0b48e96
commit
e7494788e7
@ -39,10 +39,12 @@ function checkDragEvent(e) {
|
|||||||
|
|
||||||
function cancelEvent (event) {
|
function cancelEvent (event) {
|
||||||
event = event || window.event;
|
event = event || window.event;
|
||||||
if (event) event = event.originalEvent || event;
|
if (event) {
|
||||||
|
event = event.originalEvent || event;
|
||||||
|
|
||||||
if (event.stopPropagation) event.stopPropagation();
|
if (event.stopPropagation) event.stopPropagation();
|
||||||
if (event.preventDefault) event.preventDefault();
|
if (event.preventDefault) event.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user