fix buffer thing
This commit is contained in:
1 parent
6fd4e76e05
commit
207fa71856
1 file changed
+1
-1
+1
-1
@@ -108,7 +108,7 @@ function display_div (middle, x, y, time)
|
|||||||
|
|
||||||
let buffer = 25;
|
let buffer = 25;
|
||||||
let pretend_doc_width = Math.max(mywidth, mydoc.defaultView.innerWidth);
|
let pretend_doc_width = Math.max(mywidth, mydoc.defaultView.innerWidth);
|
||||||
if(newx + mywidth > pretend_doc_width)
|
if(newx + mywidth > pretend_doc_width-buffer)
|
||||||
{
|
{
|
||||||
newx -= (newx + mywidth - pretend_doc_width);
|
newx -= (newx + mywidth - pretend_doc_width);
|
||||||
newx -= buffer;
|
newx -= buffer;
|
||||||
|
|||||||
Reference in new issue
Block a user