commit 27d4db2424451da92c4d1a5dac3839670ca41273
parent 9d3e6f378ca42bc9a9c90a9c3b12b20ebdbfa311
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 25 Jan 2016 13:54:05 -0500
Merge branch 'issue1350' into develop. Issue #1350.
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/unpacked/extensions/AssistiveMML.js b/unpacked/extensions/AssistiveMML.js
@@ -44,7 +44,16 @@
height: "1px!important",
width: "1px!important",
overflow: "hidden!important",
- display:"block!important"
+ display:"block!important",
+ //
+ // Don't allow the assistive MathML become part of the selection
+ //
+ "-webkit-touch-callout": "none",
+ "-webkit-user-select": "none",
+ "-khtml-user-select": "none",
+ "-moz-user-select": "none",
+ "-ms-user-select": "none",
+ "user-select": "none"
},
".MJX_Assistive_MathML.MJX_Assistive_MathML_Block": {
width: "100%!important"
@@ -115,7 +124,7 @@
}
frame.setAttribute("data-mathml",mml);
span = HTML.addElement(frame,"span",{
- isMathJax: true,
+ isMathJax: true, unselectable: "on",
className: "MJX_Assistive_MathML"
+ (jax.root.Get("display") === "block" ? " MJX_Assistive_MathML_Block" : "")
});