Browse Source

fix bugs

master
pandao 10 years ago
parent
commit
c6b6a6e8d9
  1. 4
      editormd.amd.js
  2. 2
      editormd.amd.min.js
  3. 4
      editormd.js
  4. 4260
      editormd.js~
  5. 4
      editormd.min.js
  6. 4
      src/editormd.js
  7. 6
      src/editormd.js~

4
editormd.amd.js

@ -850,7 +850,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= preview[0].scrollHeight)
else if (scrollTop + height >= cmScroll.scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}
@ -1617,7 +1617,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= $(this)[0].scrollHeight)
else if (scrollTop + height >= $(this)[0].scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}

2
editormd.amd.min.js

File diff suppressed because one or more lines are too long

4
editormd.js

@ -780,7 +780,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= preview[0].scrollHeight)
else if (scrollTop + height >= cmScroll.scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}
@ -1547,7 +1547,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= $(this)[0].scrollHeight)
else if (scrollTop + height >= $(this)[0].scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}

4260
editormd.js~

File diff suppressed because it is too large

4
editormd.min.js

File diff suppressed because one or more lines are too long

4
src/editormd.js

@ -768,7 +768,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= preview[0].scrollHeight)
else if (scrollTop + height >= cmScroll.scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}
@ -1535,7 +1535,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= $(this)[0].scrollHeight)
else if (scrollTop + height >= $(this)[0].scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}

6
src/editormd.js~

@ -768,7 +768,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= preview[0].scrollHeight)
else if (scrollTop + height >= preview[0].scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}
@ -790,7 +790,7 @@
* @returns {editormd} this(editormd instance object.)
*/
extend : function() {
extends : function() {
if (typeof arguments[1] !== "undefined")
{
if (typeof arguments[1] === "function")
@ -1535,7 +1535,7 @@
{
preview.scrollTop(0);
}
else if (scrollTop + height >= $(this)[0].scrollHeight)
else if (scrollTop + height >= $(this)[0].scrollHeight - 16)
{
preview.scrollTop(preview[0].scrollHeight);
}

Loading…
Cancel
Save