Skip to content
Snippets Groups Projects
Commit 32af7ffa authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #16086 TIME 0:10 Improve default positioning

parent 59965a8a
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,10 @@ export class DocumentNotePadComponent implements OnInit {
if (Math.sign(offset.top) === 1 || this.precentScrollTop <= Math.abs(offset.top)) {
y = this.precentScrollTop - offset.top;
}
else if (Math.sign(offset.top) === -1) {
y = (this.precentScrollTop - offset.top) * 300;
else if (Math.sign(offset.top) === -1 && this.precentScrollTop <= -Math.sign(offset.top)) {
y = (this.precentScrollTop - offset.top) * 2;
} else {
y = (this.precentScrollTop - offset.top) * 100;
}
x = this.precentScrollLeft - offset.left;
clientX = this.precentScrollLeft - document.documentElement.offsetLeft;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment