allow fractional scrollLeft
This commit is contained in:
parent
1bf73980ae
commit
dd057f3095
2 changed files with 4 additions and 4 deletions
|
|
@ -172,8 +172,8 @@ var Autocomplete = function() {
|
||||||
"Shift-Return": function(editor) { editor.completer.insertMatch(true); },
|
"Shift-Return": function(editor) { editor.completer.insertMatch(true); },
|
||||||
"Tab": function(editor) { editor.completer.insertMatch(); },
|
"Tab": function(editor) { editor.completer.insertMatch(); },
|
||||||
|
|
||||||
"PageUp": function(editor) { editor.completer.popup.gotoPageDown(); },
|
"PageUp": function(editor) { editor.completer.popup.gotoPageUp(); },
|
||||||
"PageDown": function(editor) { editor.completer.popup.gotoPageUp(); }
|
"PageDown": function(editor) { editor.completer.popup.gotoPageDown(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
this.gatherCompletions = function(editor, callback) {
|
this.gatherCompletions = function(editor, callback) {
|
||||||
|
|
|
||||||
|
|
@ -992,7 +992,7 @@ var EditSession = function(text, mode) {
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
this.setScrollTop = function(scrollTop) {
|
this.setScrollTop = function(scrollTop) {
|
||||||
scrollTop = Math.round(scrollTop);
|
// TODO: should we force integer lineheight instead? scrollTop = Math.round(scrollTop);
|
||||||
if (this.$scrollTop === scrollTop || isNaN(scrollTop))
|
if (this.$scrollTop === scrollTop || isNaN(scrollTop))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -1013,7 +1013,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}
|
* [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) {
|
this.setScrollLeft = function(scrollLeft) {
|
||||||
scrollLeft = Math.round(scrollLeft);
|
// scrollLeft = Math.round(scrollLeft);
|
||||||
if (this.$scrollLeft === scrollLeft || isNaN(scrollLeft))
|
if (this.$scrollLeft === scrollLeft || isNaN(scrollLeft))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue