use fake horizontal scrollbar
This commit is contained in:
parent
2d9225326c
commit
43f1788ad4
5 changed files with 302 additions and 126 deletions
|
|
@ -985,7 +985,7 @@ var EditSession = function(text, mode) {
|
|||
*
|
||||
**/
|
||||
this.setScrollTop = function(scrollTop) {
|
||||
scrollTop = Math.round(Math.max(0, scrollTop));
|
||||
scrollTop = Math.round(scrollTop);
|
||||
if (this.$scrollTop === scrollTop || isNaN(scrollTop))
|
||||
return;
|
||||
|
||||
|
|
@ -1006,7 +1006,7 @@ var EditSession = function(text, mode) {
|
|||
* [Sets the value of the distance between the left of the editor and the leftmost part of the visible content.]{: #EditSession.setScrollLeft}
|
||||
**/
|
||||
this.setScrollLeft = function(scrollLeft) {
|
||||
scrollLeft = Math.round(Math.max(0, scrollLeft));
|
||||
scrollLeft = Math.round(scrollLeft);
|
||||
if (this.$scrollLeft === scrollLeft || isNaN(scrollLeft))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue