Compare commits

...

2 Commits

Author SHA1 Message Date
c25963fca8 returned default 2026-04-09 09:41:42 +05:00
5e627e14ae window.scrollX and window.scrollY 2025-10-08 11:46:43 +07:00

View File

@@ -21,7 +21,7 @@
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy> * @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/ */
export class hotline { export default class hotline {
/** /**
* @name Shell * @name Shell
* *
@@ -566,9 +566,9 @@ export class hotline {
if ( if (
(instance.vertical && (instance.vertical &&
Math.round(instance.#first.end) < instance.#shell.offsetTop + instance.#shell.offsetParent.offsetTop) || Math.round(instance.#first.end) < instance.#shell.offsetTop + instance.#shell.offsetParent.offsetTop - window.scrollY) ||
(!instance.vertical && (!instance.vertical &&
Math.round(instance.#first.end) < instance.#shell.offsetLeft + instance.#shell.offsetParent.offsetLeft) Math.round(instance.#first.end) < instance.#shell.offsetLeft + instance.#shell.offsetParent.offsetLeft - window.scrollX)
) { ) {
// The first element with its separator went beyond the shell // The first element with its separator went beyond the shell
@@ -626,9 +626,9 @@ export class hotline {
} }
} else if ( } else if (
(instance.vertical && (instance.vertical &&
Math.round(instance.#first.rectangle.y) > instance.#shell.offsetTop + instance.#shell.offsetParent.offsetTop) || Math.round(instance.#first.rectangle.y) > instance.#shell.offsetTop + instance.#shell.offsetParent.offsetTop - window.scrollY) ||
(!instance.vertical && (!instance.vertical &&
Math.round(instance.#first.rectangle.x) > instance.#shell.offsetLeft + instance.#shell.offsetParent.offsetLeft) Math.round(instance.#first.rectangle.x) > instance.#shell.offsetLeft + instance.#shell.offsetParent.offsetLeft - window.scrollX)
) { ) {
// Beginning border of first element with its separator went beyond the shell // Beginning border of first element with its separator went beyond the shell