From 0c85b28ccc0f47168543e0a802c45b100bbfeb45 Mon Sep 17 00:00:00 2001 From: wareya Date: Sat, 23 Jun 2018 04:55:45 -0400 Subject: [PATCH] fix android bug and bump version number --- manifest.json | 2 +- texthook.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 5e9f878..7939e64 100644 --- a/manifest.json +++ b/manifest.json @@ -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.", diff --git a/texthook.js b/texthook.js index 47d1111..23e11c0 100644 --- a/texthook.js +++ b/texthook.js @@ -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;