Don't bounce of the top bar to prevent movable freezing
This commit is contained in:
parent
bc1d745209
commit
d6b694cc9d
|
@ -580,6 +580,7 @@ export function dragElement(elmnt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//prevent underlap with topbar div
|
//prevent underlap with topbar div
|
||||||
|
/*
|
||||||
if (top < topBarLastY
|
if (top < topBarLastY
|
||||||
&& (maxX >= topBarFirstX && left <= topBarFirstX //elmnt is hitting topbar from left side
|
&& (maxX >= topBarFirstX && left <= topBarFirstX //elmnt is hitting topbar from left side
|
||||||
|| left <= topBarLastX && maxX >= topBarLastX //elmnt is hitting topbar from right side
|
|| left <= topBarLastX && maxX >= topBarLastX //elmnt is hitting topbar from right side
|
||||||
|
@ -588,6 +589,7 @@ export function dragElement(elmnt) {
|
||||||
console.debug('topbar hit')
|
console.debug('topbar hit')
|
||||||
elmnt.css('top', top + 1 + "px");
|
elmnt.css('top', top + 1 + "px");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the element header exists and set the listener on the grabber
|
// Check if the element header exists and set the listener on the grabber
|
||||||
|
|
Loading…
Reference in New Issue