scroll events are now on the edit session
This commit is contained in:
parent
ee123ab4a4
commit
ea23efaed2
2 changed files with 0 additions and 5 deletions
|
|
@ -63,9 +63,6 @@ var Editor = function(renderer, session) {
|
||||||
this.container = container;
|
this.container = container;
|
||||||
this.renderer = renderer;
|
this.renderer = renderer;
|
||||||
|
|
||||||
renderer.on("scrollX", this._emit.bind(this, "scrollX"));
|
|
||||||
renderer.on("scrollY", this._emit.bind(this, "scrollY"));
|
|
||||||
|
|
||||||
this.textInput = new TextInput(renderer.getTextAreaContainer(), this);
|
this.textInput = new TextInput(renderer.getTextAreaContainer(), this);
|
||||||
this.keyBinding = new KeyBinding(this);
|
this.keyBinding = new KeyBinding(this);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -703,7 +703,6 @@ var VirtualRenderer = function(container, theme) {
|
||||||
if (this.scrollTop !== scrollTop) {
|
if (this.scrollTop !== scrollTop) {
|
||||||
this.$loop.schedule(this.CHANGE_SCROLL);
|
this.$loop.schedule(this.CHANGE_SCROLL);
|
||||||
this.scrollTop = scrollTop;
|
this.scrollTop = scrollTop;
|
||||||
this._emit("scrollY", scrollTop);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -713,7 +712,6 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
this.scroller.scrollLeft = scrollLeft;
|
this.scroller.scrollLeft = scrollLeft;
|
||||||
scrollLeft = this.scroller.scrollLeft;
|
scrollLeft = this.scroller.scrollLeft;
|
||||||
this._emit("scrollX", scrollLeft);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.scrollBy = function(deltaX, deltaY) {
|
this.scrollBy = function(deltaX, deltaY) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue