Skip to content

Commit

Permalink
MDL-67117 filter_mathjaxloader: do not position to hash
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Nov 3, 2019
1 parent e04a73c commit 553b17a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Expand Up @@ -119,6 +119,8 @@ M.filter_mathjaxloader = M.filter_mathjaxloader || {
var processdelay = window.MathJax.Hub.processSectionDelay;
// Set the process section delay to 0 when updating the formula.
window.MathJax.Hub.processSectionDelay = 0;
// When content is updated never position to hash, it may cause unexpected document scrolling.
window.MathJax.Hub.Config({positionToHash: false});
self._setLocale();
event.nodes.each(function(node) {
node.all('.filter_mathjaxloader_equation').each(function(node) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -119,6 +119,8 @@ M.filter_mathjaxloader = M.filter_mathjaxloader || {
var processdelay = window.MathJax.Hub.processSectionDelay;
// Set the process section delay to 0 when updating the formula.
window.MathJax.Hub.processSectionDelay = 0;
// When content is updated never position to hash, it may cause unexpected document scrolling.
window.MathJax.Hub.Config({positionToHash: false});
self._setLocale();
event.nodes.each(function(node) {
node.all('.filter_mathjaxloader_equation').each(function(node) {
Expand Down
2 changes: 2 additions & 0 deletions filter/mathjaxloader/yui/src/loader/js/loader.js
Expand Up @@ -117,6 +117,8 @@ M.filter_mathjaxloader = M.filter_mathjaxloader || {
var processdelay = window.MathJax.Hub.processSectionDelay;
// Set the process section delay to 0 when updating the formula.
window.MathJax.Hub.processSectionDelay = 0;
// When content is updated never position to hash, it may cause unexpected document scrolling.
window.MathJax.Hub.Config({positionToHash: false});
self._setLocale();
event.nodes.each(function(node) {
node.all('.filter_mathjaxloader_equation').each(function(node) {
Expand Down

0 comments on commit 553b17a

Please sign in to comment.