Don't bounce of the top bar to prevent movable freezing

This commit is contained in:
Cohee 2023-08-31 23:44:36 +03:00
parent bc1d745209
commit d6b694cc9d
1 changed files with 2 additions and 0 deletions

View File

@ -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