From d6b694cc9d30c9936ecd0a179bd2d80f8d08652c Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 31 Aug 2023 23:44:36 +0300 Subject: [PATCH] Don't bounce of the top bar to prevent movable freezing --- public/scripts/RossAscends-mods.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index a958314e1..4a9e54ee3 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -580,6 +580,7 @@ export function dragElement(elmnt) { } //prevent underlap with topbar div + /* if (top < topBarLastY && (maxX >= topBarFirstX && left <= topBarFirstX //elmnt is hitting topbar from left side || left <= topBarLastX && maxX >= topBarLastX //elmnt is hitting topbar from right side @@ -588,6 +589,7 @@ export function dragElement(elmnt) { console.debug('topbar hit') elmnt.css('top', top + 1 + "px"); } + */ } // Check if the element header exists and set the listener on the grabber