fix android bug and bump version number

This commit is contained in:
wareya committed 2018-06-23 04:55:45 -04:00
1 parent 33c4a38093
commit 0c85b28ccc
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "nazeka", "name": "nazeka",
"version": "0.1.10", "version": "0.1.10.2",
"author": "Wareya", "author": "Wareya",
"homepage_url": "https://github.com/wareya/nazeka", "homepage_url": "https://github.com/wareya/nazeka",
"description": "A rikai replacement.", "description": "A rikai replacement.",
+3 -3
View File
@@ -165,7 +165,7 @@ function display_div(middle, x, y)
styletext += "max-width: " + Math.round(Number(settings.width)) + "px; " styletext += "max-width: " + Math.round(Number(settings.width)) + "px; "
styletext += "min-width: 150px; " styletext += "min-width: 150px; "
} }
styletext += "position: absolute; top: 0; left: 0; "; styletext += "position: absolute; top: 0; left: 0; transition: unset; ";
if(settings.superborder) if(settings.superborder)
styletext += `background-color: ${settings.fgcolor}; border-radius: 3px; border: 1px solid ${settings.fgcolor}; z-index: 1000000000000000000000;`; 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.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 other = document.body.getElementsByClassName(div_class)[0];
//let middle = other.firstChild.cloneNode(true); //let middle = other.firstChild.cloneNode(true);
@@ -1290,7 +1290,7 @@ function update(event)
textNode = range.offsetNode; textNode = range.offsetNode;
offset = range.offset; 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; textNode = undefined;
offset = undefined; offset = undefined;