increase scroll speed
This commit is contained in:
parent
59584a0e11
commit
69bcbacfb3
2 changed files with 3 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
||||||
this.$tokenizeRows = function(firstRow, lastRow) {
|
this.$tokenizeRows = function(firstRow, lastRow) {
|
||||||
var rows = [];
|
var rows = [];
|
||||||
|
|
||||||
// determin start state
|
// determine start state
|
||||||
var state = "start";
|
var state = "start";
|
||||||
var doCache = false;
|
var doCache = false;
|
||||||
if (firstRow > 0 && this.lines[firstRow - 1]) {
|
if (firstRow > 0 && this.lines[firstRow - 1]) {
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,7 @@ var Editor = function(renderer, doc) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onMouseWheel = function(e) {
|
this.onMouseWheel = function(e) {
|
||||||
this.renderer.scrollBy(e.wheelX, e.wheelY);
|
this.renderer.scrollBy(e.wheelX * 2, e.wheelY * 2);
|
||||||
return event.preventDefault(e);
|
return event.preventDefault(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue