dont blow the stack, fixes #853
This commit is contained in:
parent
484cc7120d
commit
8c7bf418ec
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ Ox.Element = function(options, self) {
|
|||
});
|
||||
// trigger dragstart, set up drag events
|
||||
that.triggerEvent('dragstart', e);
|
||||
$('*').on({
|
||||
$('.OxElement').on({
|
||||
mouseenter: dragenter,
|
||||
mouseleave: dragleave
|
||||
});
|
||||
|
@ -178,7 +178,7 @@ Ox.Element = function(options, self) {
|
|||
// stop checking for drag
|
||||
Ox.UI.$window.off('mousemove', mousemove);
|
||||
// stop checking for dragenter and dragleave
|
||||
$('*').off({
|
||||
$('.OxElement').off({
|
||||
mouseenter: dragenter,
|
||||
mouseleave: dragleave
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue