Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
pandao committed Mar 23, 2015
1 parent 5e06d79 commit c6b6a6e
Show file tree
Hide file tree
Showing 7 changed files with 4,272 additions and 12 deletions.
4 changes: 2 additions & 2 deletions editormd.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion editormd.amd.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
Loading

0 comments on commit c6b6a6e

Please sign in to comment.