I have a WebView that updates its jqMath equation every fraction of a second. Every now and then (more often when the equation's font is large) the equation displays the delimiting characters for a fraction of a second ($$
,$
,[\
,(\
). This usually happens on fast devices. Here is my code:
String funcText = "4+5+6+8";
js = "<div><head>" + "<link rel='stylesheet' " +
"href='file:///android_asset/mathscribe/jqmath-0.4.3.css'>" + "<script>" +
"src='file:///android_asset/mathscribe/jquery-1.4.3.min.js'></script>" + "<script" +
" src='file:///android_asset/mathscribe/jqmath-etc-0.4.3.min.js'></script>" +
"</head><body>" + "\\[" + funcText + "\\]</body></divl>";
webView.loadDataWithBaseURL("", js, "text/html", "UTF-8", "");
jqMath will render this function correctly:
4+5+6+8
However, very rarely, it will display it with its delimiting blocks, for a fraction of a second:
[\4+5+6+8\]
Even though it only appears for a fraction of a second, it causes the text to jitter and look bugged.
I have no clue what could possibly cause this. Any help will be appreciated.