fix android bug and bump version number
This commit is contained in:
1 parent
33c4a38093
commit
0c85b28ccc
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "nazeka",
|
||||
"version": "0.1.10",
|
||||
"version": "0.1.10.2",
|
||||
"author": "Wareya",
|
||||
"homepage_url": "https://github.com/wareya/nazeka",
|
||||
"description": "A rikai replacement.",
|
||||
|
||||
+3
-3
@@ -165,7 +165,7 @@ function display_div(middle, x, y)
|
||||
styletext += "max-width: " + Math.round(Number(settings.width)) + "px; "
|
||||
styletext += "min-width: 150px; "
|
||||
}
|
||||
styletext += "position: absolute; top: 0; left: 0; ";
|
||||
styletext += "position: absolute; top: 0; left: 0; transition: unset; ";
|
||||
|
||||
if(settings.superborder)
|
||||
styletext += `background-color: ${settings.fgcolor}; border-radius: 3px; border: 1px solid ${settings.fgcolor}; z-index: 1000000000000000000000;`;
|
||||
@@ -1225,7 +1225,7 @@ function update(event)
|
||||
{
|
||||
if(!settings.enabled) return;
|
||||
|
||||
if(settings.popup_follows_mouse && exists_div() && !settings.sticky)
|
||||
if(settings.popup_follows_mouse && exists_div() && !settings.sticky && platform != "android")
|
||||
{
|
||||
let other = document.body.getElementsByClassName(div_class)[0];
|
||||
//let middle = other.firstChild.cloneNode(true);
|
||||
@@ -1290,7 +1290,7 @@ function update(event)
|
||||
textNode = range.offsetNode;
|
||||
offset = range.offset;
|
||||
}
|
||||
if(!ele.contains(textNode))
|
||||
if(ele && !ele.contains(textNode) && platform != "android" && !settings.sticky) // sticky mode and android need to break out on parent detection
|
||||
{
|
||||
textNode = undefined;
|
||||
offset = undefined;
|
||||
|
||||
Reference in new issue
Block a user